Closed umairqureshi6 closed 6 years ago
Can you elaborate please? Do you use Storyboard? Is you side menu button well connected to IBOutlet? Can you provide some lines of code?
yes i am using a storyboard, side menu button is well connected to IBOutlet have placed this code in UIViewController class
`- (void)viewWillTransitionToSize:(CGSize)size withTransitionCoordinator:(id
}];
[super viewWillTransitionToSize:size withTransitionCoordinator:coordinator];
}`
using this code in viewdidload
` _leftButton.target = self.revealViewController; _leftButton.action = @selector(revealLeftView);
_rightButton.target = self.revealViewController;
_rightButton.action = @selector(revealRightView);
// self.revealViewController.leftPresentViewHierarchically = YES; // self.revealViewController.rightPresentViewHierarchically = YES;
//self.revealViewController.leftToggleAnimationDuration = 0.8;
self.revealViewController.toggleAnimationType = PBRevealToggleAnimationTypeSpring;`
I don't see anything wrong here. Can you provide a project example?
Is the class of your MainViewController is set in the storyboard?
you can check that link now!
The segue from PBRevealViewController to MenuTableViewController (identifier: pb_left) in your storyboard must be a subclass of PBRevealViewControllerSegueSetController (not PBRevealViewControllerSeguePushController).
i have implemented side menu using Objective C version nothing happens when i click on side menu button
i have implemented using example from github