Как показать presentModalView внутри другого presentModalView? - PullRequest
0 голосов
/ 11 марта 2011

Как мне показать presentModalView внутри другого presentModalView?

Я хочу назвать это:

[button addTarget:self action:@selector(settingsTapped) forControlEvents:UIControlEventTouchUpInside];

IN HERE

UINavigationController *_nc = [[[UINavigationController alloc] initWithRootViewController:scannerVC] autorelease]; //Put our SKScannerViewController into a UINavigationController. (So it looks nice).
        [scannerVC release];

[self presentModalViewController:_nc animated:YES]; //Slide it up onto the screen.

затем

//another screen pop up in _nc
qrcode_info *otherVC = [[qrcode_info alloc] initWithNibName:@"qrcode_info" bundle:Nil  ];

//  [self presentModalViewController: otherVC animated:YES];

1 Ответ

1 голос
/ 11 марта 2011

Просто позвоните -presentModalViewController:animated: из контроллера вида, который отображается модально.

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...