I have made one app in ios. I have use swrevealviewcontroller for menu.I need keyboard disapper when menu open or not. So how to recognize menu is open or not?
If you want to check the status of the SWRevealViewController in your code, check the frontViewPosition property of the SWRevealViewController
if (self.revealViewController().frontViewPosition != FrontViewPosition.Left) {
// Do something
}
If you want to be notified for the menu toggle, implement the following SWRevealViewControllerDelegate methods in your delegate. (where you want to observe these changes)
- (void)revealController:(SWRevealViewController *)revealController willMoveToPosition:(FrontViewPosition)position;
- (void)revealController:(SWRevealViewController *)revealController didMoveToPosition:(FrontViewPosition)position;
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With