Skip to content
This repository has been archived by the owner on Apr 8, 2020. It is now read-only.

Closing menu programmatically #9

Open
alexjegor opened this issue Dec 16, 2013 · 0 comments
Open

Closing menu programmatically #9

alexjegor opened this issue Dec 16, 2013 · 0 comments

Comments

@alexjegor
Copy link

Hey, dear Ivan @iSapozhnik . How are u? :)
Help me to solve this issue. I found a method in SIMenuTable "- (void)hide;"
How can i call it? Here is my init code

if (self.navigationItem) {
CGRect frame = CGRectMake(0.0, 0.0, 200.0, self.navigationController.navigationBar.bounds.size.height);
NSString *firstCategoryTitle = ((CategoryClass *)[categories objectAtIndex:0]).categoryName;

        SINavigationMenuView *menu = [[SINavigationMenuView alloc] initWithFrame:frame title:firstCategoryTitle];
        //Set in which view we will display a menu
        [menu displayMenuInView:self.view];
        //Create array of items
        NSMutableArray *ar = [[NSMutableArray alloc] init];

        for (CategoryClass *cc in categories) {
            [ar addObject:cc.categoryName];
        }

        menu.items = [NSArray arrayWithArray:ar];
        menu.delegate = self;

        self.navigationItem.titleView = menu;
    }
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant