In my project , I used SWRevealviewcontroller for slider menu.and when Project is in background and then Foreground that time i want current front view object.
How to get current front viewcontroller from SWRevealviewcontroller ?
- (void)applicationWillEnterForeground:(UIApplication *)application {
SWRevealViewController *mainRevealController = [[SWRevealViewController alloc] init];
NSLog(@"front :%@",mainRevealController.frontViewController);
}