#import <CPAccordionView.h>
Additional Inherited Members | |
Class Methods inherited from CPView | |
(Class) | + animatorClass |
(CAAnimation) | + defaultAnimationForKey: |
(CPMenu) | + defaultMenu |
(CPString) | + defaultThemeClass |
(void) | + initialize |
(BOOL) | + isHighDPIDrawingEnabled |
(CPSet) | + keyPathsForValuesAffectingBounds |
(CPSet) | + keyPathsForValuesAffectingFrame |
(void) | + setHighDPIDrawingEnabled: |
(CPDictionary) | + themeAttributes |
CPAccordionView provides a container for CPAccordionViewItem objects and manages layout state for all sub-layout items.
Example
var myAccordionView = [[CPAccordionView alloc] initWithFrame:CGRectMakeZero()]; var firstItem = [[CPAccordionViewItem alloc] initWithIdentifier:"firstSection"]]; [firstItem setView:[[CPView alloc] initWithFrame:CGRectMakeZero()]]; var secondItem = [[CPAccordionViewItem alloc] initWithIdentifier:"secondSection"]]; [secondItem setView:[[CPView alloc] initWithFrame:CGRectMakeZero()]]; [myAccordionView addItem:firstItem]; [myAccordionView addItem:secondItem]; [myAccordionView setAutoresizingMask: CPViewWidthSizable | CPViewHeightSizable];
Definition at line 2 of file CPAccordionView.h.
|
implementation |
Append a CPAccordionViewItem to the receiver. Note that the CPAccordionViewItem must contain a valid CPView derived component or a TypeError will be generated when the contents of the ViewItem are disclosed.
Definition at line 125 of file CPAccordionView.j.
|
implementation |
Definition at line 217 of file CPAccordionView.j.
|
implementation |
Definition at line 190 of file CPAccordionView.j.
|
implementation |
Definition at line 212 of file CPAccordionView.j.
|
implementation |
Definition at line 179 of file CPAccordionView.j.
|
implementation |
Initializes the receiver for usage with the specified bounding rectangle
Reimplemented from CPView.
Definition at line 90 of file CPAccordionView.j.
|
implementation |
Definition at line 130 of file CPAccordionView.j.
|
implementation |
Definition at line 111 of file CPAccordionView.j.
|
implementation |
Definition at line 116 of file CPAccordionView.j.
|
implementation |
Reimplemented from CPView.
Definition at line 260 of file CPAccordionView.j.
|
implementation |
Definition at line 171 of file CPAccordionView.j.
|
implementation |
Definition at line 151 of file CPAccordionView.j.
|
implementation |
Definition at line 156 of file CPAccordionView.j.
|
implementation |
Definition at line 226 of file CPAccordionView.j.
|
implementation |
Sets the receiver's frame size. If aSize
is the same as the frame's current dimensions, this method simply returns. The method posts a CPViewFrameDidChangeNotification to the default notification center if the receiver is configured to do so.
aSize | the new size for the frame |
Reimplemented from CPView.
Definition at line 250 of file CPAccordionView.j.
|
implementation |
Definition at line 106 of file CPAccordionView.j.
|
implementation |
Definition at line 201 of file CPAccordionView.j.