2011-03-11 26 views
0

您好,我如何顯示presentModalView內另一presentModalView?如何在另一個presentModalView中顯示presentModalView?

我想調用此

[按鈕addTarget:自動作:@selector(settingsTapped)forControlEvents:UIControlEventTouchUpInside];

這裏

的UINavigationController * _nc = [[[UINavigationController的頁頭] initWithRootViewController:scannerVC]自動釋放]; //將SKScannerViewController放入UINavigationController。 (所以它看起來不錯)。 [scannerVC release];

[self presentModalViewController:_nc animated:YES]; //將它滑到屏幕上。

然後

//另一屏幕_nc彈出 qrcode_info * otherVC = [[qrcode_info的alloc] initWithNibName:@ 「qrcode_info」 束:無];

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

回答

1

只需在模態顯示的視圖控制器中調用-presentModalViewController:animated:即可。

+0

我想打電話給這個。 [button addTarget:self action:@selector(settingsTapped)forControlEvents:UIControlEventTouchUpInside]; UINavigationController * _nc = [[[UINavigationController alloc] initWithRootViewController:scannerVC] autorelease]; – Desmond 2011-03-11 04:25:52

相關問題