开发者

How to show a presentModalView inside another presentModalView?

开发者 https://www.devze.com 2023-02-16 16:58 出处:网络
How do I show a presentModalView inside another presentModalView? I wanna call this: [button addTarget:self action:@selector(settingsTapped) forControlEvents:UIControlEventTouchUpInside];

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

精彩评论

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