// // DGThumbUpButton.h // DGThumbUpButton // // Created by Desgard_Duan on 16/6/9. // Copyright © 2016年 Desgard_Duan. All rights reserved. // #import typedef NS_ENUM(NSUInteger, DGThumbUpButtonType) { DGThumbUpExplosionType = 0 }; @interface DGThumbUpButton : UIButton //是否被选中 @property (assign,nonatomic) BOOL isSelected; //是否展示爆炸动画 @property (assign,nonatomic) BOOL isShowAnimation; - (instancetype) initWithFrame: (CGRect)frame isPress: (BOOL)press; - (void)setActionUpInside:(void (^)(BOOL selected))action; //执行取消点赞效果 - (void) popOutsideWithDuration: (NSTimeInterval) duringTime; //执行点赞效果 - (void) popInsideWithDuration: (NSTimeInterval) duringTime; @end