Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Side navigation bar (menu) (iOS 6) like in Facebook app + storyboards

I want to create side menu like in Facebook iPhone app in iOS 6 using Xcode and Storyboards. How can I make it?

Thanks.

like image 537
egor.zhdan Avatar asked Dec 27 '22 12:12

egor.zhdan


2 Answers

We wrote MMDrawerController to solve this problem, but I havent thought about using it in a storyboard (simply because storyboards aren't maintainable for large teams).

https://github.com/mutualmobile/MMDrawerController

like image 108
kcharwood Avatar answered Jan 05 '23 16:01

kcharwood


Get custom component like Inferis/ViewDeck and implement containment programmatically:

@interface YourViewController : IIViewDeckController

@end

implementation:

@implementation YourViewController

-(void)awakeFromNib
{
  UIStoryboard* storyboard = [UIStoryboard storyboardWithName:@"Storyboard" bundle:nil];
  self.centerController = [storyboard instantiateViewControllerWithIdentifier:@"CenterViewController"];
  self.leftController = [storyboard instantiateViewControllerWithIdentifier:@"LeftViewController"];
}

@end
like image 23
Alexey Kozhevnikov Avatar answered Jan 05 '23 17:01

Alexey Kozhevnikov