如何在另一个presentModalView中显示presentModalView?

时间:2011-03-11 03:55:05

标签: ios objective-c uikit

如何在另一个presentModalView中显示presentModalView?

我想这样称呼:

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

在这里

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 个答案:

答案 0 :(得分:1)

只需在视频控制器中以模态方式显示-presentModalViewController:animated: