Reputation: 4595
I want to create side menu like in Facebook iPhone app in iOS 6 using Xcode and Storyboards. How can I make it?
Thanks.
Upvotes: 4
Views: 7841
Reputation: 2535
In case someone else would like to do something similar.. I've succeeded using ECSlidingView. It is already done using storyboards. There's also an example included.
https://github.com/edgecase/ECSlidingViewController.git
EDIT:
Well after implementing this ECSlidingViewController i see that the navigation is slow, and strange. Switched to IIViewDeckController after all. Fast and easy, super!
Upvotes: 1
Reputation: 2531
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
Upvotes: 7
Reputation: 4259
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
Upvotes: 2