SWRevealViewController make sidebar button static

2019-01-29 09:52发布

问题:

Is there any way to make the rearView appear on top of the frontView as below image in storyboard using Objective-C. I want to make the Front View navigation Fixed & make sidebar button static.

回答1:

This kind of android drawer external and open source library called as a CCKFNavDrawer.

CCKFNavDrawer

For using this following code.

self.rootNav = (CCKFNavDrawer *)self.navigationController;
[self.rootNav setCCKFNavDrawerDelegate:self];

Then implement delegate method

- (void)CCKFNavDrawerSelection:(NSInteger)selectionIndex
{
  NSLog(@"%i", selectionIndex);
}

May this helps lot.