Вопрос

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