[英]Two UIView Controllers - changing View controllers - touching top of Second View Controller changes back to first view controller
I have a storyboard with two UIVIewControllers. 我有一个带有两个UIVIewControllers的情节提要。 They both have ID's set and when "Start Game" is pressed:
它们都设置了ID,并且在按下“开始游戏”时:
-(IBAction)startGame:(id)sender{
[self startGameProcedure];
UIViewController *gameController = [self.storyboard instantiateViewControllerWithIdentifier:@"second"];
[self presentViewController:gameController animated:YES completion:nil];
}
This loads the second view controller. 这将加载第二个视图控制器。 But when the user touches anywhere in the top half of this view controller, it goes back to the first view controller?
但是,当用户触摸此视图控制器上半部分的任何位置时,它又回到第一个视图控制器吗? I don't want this to happen.
我不希望这种情况发生。 What have I done incorrectly and how can I resolve this please?
我做错了什么,请问如何解决?
This was due to the transition style being "Partial Curl". 这是由于过渡样式为“部分卷曲”。 Changing this resolved the issue.
更改此设置即可解决问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.