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

enter image description here

Was it helpful?

Solution

i got below solution to the problem

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top