Closed sahabe1 closed 9 years ago
This code creates a side menu button
UIButton *button = [[UIButton alloc] initWithFrame:CGRectMake(0, 0, 30, 30)];
[button setImage:[UIImage imageNamed:@"menu-button"] forState:UIControlStateNormal];
[button addTarget:[SlideNavigationController sharedInstance] action:@selector(toggleRightMenu) forControlEvents:UIControlEventTouchUpInside];
UIBarButtonItem *rightBarButtonItem = [[UIBarButtonItem alloc] initWithCustomView:button];
in viewDidLoad
self.navigationItem.rightBarButtonItems = @[rightBarButtonItem,anotherButton];
Hi aryaxt,
I want to add multiple button to the left menu on the navigation bar can we add. please help us how we can add multiple button please see attachment
Thanks