-
Notifications
You must be signed in to change notification settings - Fork 0
FRSlideMenuItem
gavinwilliams-fishrod edited this page Feb 20, 2011
·
10 revisions
FRSlideMenuItem holds information about a menu item, you can add additional sub menu items to this object, but only if there is no parent.
To create a new menu item, use the following
NSError *err = nil;
FRSlideMenuIcon *icon = [FRSlideMenuIcon iconWithImage:@"icon.png" highlighted:@"icon-highlighted.png" error:&err];
if(err == nil){
FRSlideMenuItem *item = [FRSlideMenuItem initWithTitle:@"The Title" icon:icon];
}
Returns/Sets the title for this menu item
@property (retain) NSString *title;
A string containing the title for the menu item, void if using setter
Returns/Sets the icon for the menu item
@property (retain) FRSlideMenuIcon *icon;
The FRSlideMenuIcon object for the menu item, void if using setter
Returns/Sets the parent menu item for the menu item
@property (assign) FRSlideMenuItem *parent;
The parent FRSlideMenuItem menu item object for the menu item, void if using setter