#import@interface TanButton : UIButton
@property (nonatomic,assign)CGFloat originX;
@property (nonatomic,assign)CGFloat originY;
@end
#import "TanButton.h"
@implementation TanButton
-(instancetype)init{
self=[super init];
if (self) {
_originX = self.frame.origin.x;
_originY = self.frame.origin.y;
self.layer.cornerRadius=5.0;
// [self setImage:[UIImage imageNamed:@"赞"] forState:UIControlStateNormal];
}
return self;
}