FWGradientView
@interface FWGradientView : UIView
渐变View,无需设置渐变Layer的frame等,支持自动布局
-
Undocumented
Declaration
Objective-C
@property (nonatomic, strong, readonly) CAGradientLayer *gradientLayer
-
Undocumented
Declaration
Objective-C
@property (nullable, copy) NSArray *colors
-
Undocumented
Declaration
Objective-C
@property (nullable, copy) NSArray<NSNumber *> *locations
-
Undocumented
Declaration
Objective-C
@property CGPoint startPoint
-
Undocumented
Declaration
Objective-C
@property CGPoint endPoint
-
Undocumented
Declaration
Objective-C
- (instancetype)initWithColors:(nullable NSArray<UIColor *> *)colors locations:(nullable NSArray<NSNumber *> *)locations startPoint:(CGPoint)startPoint endPoint:(CGPoint)endPoint;
-
Undocumented
Declaration
Objective-C
- (void)setColors:(nullable NSArray<UIColor *> *)colors locations:(nullable NSArray<NSNumber *> *)locations startPoint:(CGPoint)startPoint endPoint:(CGPoint)endPoint;