|
//
// shareButton.m
// ThePaperHD
//
// Created by scar1900 on 15/2/12.
// Copyright (c) 2015年 scar1900. All rights reserved.
//
#import "shareButton.h"
@implementation shareButton
-(id)initWithFrame:(CGRect)frame {
self = [super initWithFrame:frame];
if (self) {
}return self;
}
- (void)setHighlighted:(BOOL)highlighted{
if (highlighted) {
[UIView animateWithDuration:0.15 animations:^{
self.transform = CGAffineTransformMakeScale(0.8, 0.8);
} completion:nil];
}else {
[UIView animateWithDuration:0.15 animations:^{
self.transform = CGAffineTransformMakeScale(1, 1);
} completion:nil];
}
[super setHighlighted:highlighted];
}
/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
// Drawing code
}
*/
@end
|