i got below solution to the problem
1) present view controller from [youtsplitviewcontroller.viewControllers objectAtIndex:0];
Question
I have viewcontroller presented on timeout notification, if window's rootViewController is
Splitviewcontroller then presented view controllers view is going below the Master controller of Splitview controller
here is my code to present view controller
- (void) applicationDidTimeout:(NSNotification *) notif {
if (![self.window.rootViewController isKindOfClass:[LoginViewController class]]) {
NumberKeyPadViewController *controller = [[NumberKeyPadViewController alloc] initWithNibName:@"NumberKeyPadViewController" bundle:[NSBundle mainBundle]];
[self.window.rootViewController presentViewController:controller animated:YES completion:NULL];
}}
Solution
i got below solution to the problem
1) present view controller from [youtsplitviewcontroller.viewControllers objectAtIndex:0];