YLPieSliceLayer Class Reference
Inherits from | CAShapeLayer |
Declared in | YLPieSliceLayer.h YLPieSliceLayer.m |
Tasks
Properties
-
value
Value of this pie slice.
property -
normalizedValue
Normalized value (between 0.0 and 1.0) of this pie slice.
property -
startAngle
Start angle in radians.
property -
endAngle
End angle in radians.
property -
selected
Boolean value that indicates wether the pie slice is selected or not.
property
Instance Methods
-
– createAnimationForKey:fromValue:toValue:delegate:
Creates a CABasicAnimation for this layer.
Properties
endAngle
End angle in radians.
@property (nonatomic, assign) CGFloat endAngle
Discussion
End angle in radians.
Declared In
YLPieSliceLayer.h
normalizedValue
Normalized value (between 0.0 and 1.0) of this pie slice.
@property (nonatomic, assign) CGFloat normalizedValue
Discussion
Normalized value (between 0.0 and 1.0) of this pie slice.
Declared In
YLPieSliceLayer.h
selected
Boolean value that indicates wether the pie slice is selected or not.
@property (nonatomic, assign) BOOL selected
Discussion
Boolean value that indicates wether the pie slice is selected or not.
Declared In
YLPieSliceLayer.h
Instance Methods
createAnimationForKey:fromValue:toValue:delegate:
Creates a CABasicAnimation for this layer.
- (void)createAnimationForKey:(NSString *)key fromValue:(NSNumber *)fromValue toValue:(NSNumber *)toValue delegate:(id)delegate
Parameters
- key
The key describing the property that should be animated.
- fromValue
The value describing where interpolation should start.
- toValue
The value describing where interpolation should end.
- delegate
Delegate that should be informed about animation events.
Discussion
Creates a CABasicAnimation for this layer.
Declared In
YLPieSliceLayer.h