Skip to content
gavinwilliams-fishrod edited this page Feb 20, 2011 · 10 revisions

Overview

FRSlideMenuItem holds information about a menu item, you can add additional sub menu items to this object, but only if there is no parent.


Usage

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];
}

Properties

title

Returns/Sets the title for this menu item

@property (retain) NSString *title;

Return Value

A string containing the title for the menu item, void if using setter

icon

Returns/Sets the icon for the menu item

@property (retain) FRSlideMenuIcon *icon;

Return Value

The FRSlideMenuIcon object for the menu item, void if using setter

parent

Returns/Sets the parent menu item for the menu item

@property (assign) FRSlideMenuItem *parent;

Return Value

The parent FRSlideMenuItem menu item object for the menu item, void if using setter