UIButton+formatter.h 778 B

123456789101112131415161718192021222324252627
  1. //
  2. // UIButtom+formatter.h
  3. // jiaPei
  4. //
  5. // Created by apple on 15/11/16.
  6. // Copyright (c) 2015年 JCZ. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. @interface UIButton(formatter)
  10. /**默认的字体大小
  11. */
  12. - (void) setImage:(UIImage *)image withTitle:(NSString *)title forState:(UIControlState)stateType;
  13. - (void) setImage:(UIImage *)image withTitle:(NSString *)title Font:(CGFloat)font forState:(UIControlState)stateType;
  14. -(void) setTitle:(NSString*)title textColor:(UIColor*)color font:(CGFloat)font fotState:(UIControlState)stateType;
  15. /**简化按钮事件添加。要求一定要实现btnClick;
  16. */
  17. -(void)target:(id)obj;
  18. -(void)target:(id)obj tag:(NSInteger)tag;
  19. -(void)setTitleNormal:(NSString*)title;
  20. -(void)setTitleSelect:(NSString*)title;
  21. @end