开发者

How to show a presentModalView inside another presentModalView?

How do I show a presentModalView inside another presentModalView?

I wanna call this:

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

IN HERE

UINavigationController *_nc = [[[开发者_C百科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.

then

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

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


Just call -presentModalViewController:animated: from within the view controller that is being shown modally.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜