UIButton+XYButton.h 357 B

12345678910111213141516171819
  1. //
  2. // UIButton+XYButton.h
  3. // MiAiApp
  4. //
  5. // Created by voidcat on 2017/6/1.
  6. // Copyright © 2017年 voidcat. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. @interface UIButton (XYButton)
  10. @property(nonatomic ,copy)void(^block)(UIButton*);
  11. -(void)addTapBlock:(void(^)(UIButton*btn))block;
  12. - (void)setBadge:(NSString *)number andFont:(int)font;
  13. @end