Inherits from CAShapeLayer
Declared in YLPieSliceLayer.h
YLPieSliceLayer.m

Overview

Layer that represents a single pie slice.

Tasks

Properties

Instance Methods

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

startAngle

Start angle in radians.

@property (nonatomic, assign) CGFloat startAngle

Discussion

Start angle in radians.

Declared In

YLPieSliceLayer.h

value

Value of this pie slice.

@property (nonatomic, assign) CGFloat value

Discussion

Value of this pie slice.

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