UIButton+CAGradientLayer.h 649 B

12345678910111213141516171819202122232425262728293031
  1. //
  2. // UIButton+CAGradientLayer.h
  3. // BuGuDY
  4. //
  5. // Created by bugu on 2020/3/14.
  6. // Copyright © 2020 宋晨光. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. NS_ASSUME_NONNULL_BEGIN
  10. @interface UIButton (CAGradientLayer)
  11. + (instancetype)buttonGradientFrame:(CGRect)frame Title:(NSString *)title target:(id)vc
  12. action:(SEL)action;
  13. + (instancetype)buttonPinkLayerFrame:(CGRect)frame Title:(NSString *)title target:(id)vc
  14. action:(SEL)action;
  15. + (instancetype)buttonLayerColor:(UIColor *)color Frame:(CGRect)frame Title:(NSString *)title target:(id)vc
  16. action:(SEL)action;
  17. @end
  18. NS_ASSUME_NONNULL_END