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];
}}

enter image description here

有帮助吗?

解决方案

i got below solution to the problem

1) present view controller from [youtsplitviewcontroller.viewControllers objectAtIndex:0];

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top