I use swrevealviewcontroller to add slide menu to my app ,
Let consider we have menu like this one in pic I need navigate from My appDelegate to any item in menu (ex:Map View Controller )
my tries :
in my appDelegate.m
UIStoryboard *storyboard =[UIStoryboard storyboardWithName:@"Main" bundle:nil];
InforView *school_view = [storyboard instantiateViewControllerWithIdentifier:@"info_view"];
[self.window makeKeyAndVisible];
[self.window.rootViewController presentViewController:school_view animated:YES completion:NULL];
When its move to InforView Controller it crash in viewdidload
- (void)viewDidLoad
{
[super viewDidLoad];
_nav_bar.target = self.revealViewController;
_nav_bar.action = @selector(revealToggle:);
// its crash here
[self.view addGestureRecognizer:self.revealViewController.panGestureRecognizer];
}
my storyboard
navigation controller --> home view --> reveal View controller
reveal View controller has two views --> slide menu navigation controller -- > Front view
my slide menu has some items as appear in pic
I need navigate from my appDelegate to one of this items