UIButton+Create.h 538 B

12345678910111213141516171819202122
  1. //
  2. // UIButton+Create.h
  3. // LiveTV
  4. //
  5. // Created by 翟玉磊 on 2019/4/12.
  6. // Copyright © 2019 翟玉磊. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. NS_ASSUME_NONNULL_BEGIN
  10. @interface UIButton (Create)
  11. + (UIButton *)createButtonRect:(CGRect)rect textColor:(UIColor *)textColor textFont:(UIFont *)font;
  12. + (UIButton *)createButtonTextColor:(UIColor *)textColor textFont:(UIFont *)font;
  13. + (UIButton *)createButtonWithTitle:(NSString *)title textColor:(UIColor *)textColor textFont:(UIFont *)font;
  14. @end
  15. NS_ASSUME_NONNULL_END