[英]Switching Views with no animation - Cocoa Touch
I want to switch views but with no animation such as a cross dissolve, so it goes to a different view with no transition. 我想切换视图,但是没有像交叉溶解这样的动画,所以它转到没有过渡的其他视图。 Just switch straight to the view. 只需直接切换到视图即可。
This is the current code: 这是当前代码:
-(IBAction)goNext:(id)sender; {
NwxtiewController *second = [[NextViewController alloc] initWithNibName:nil bundle:nil];
second.modalTransitionStyle = UIModalTransitionStyleCrossDissolve;
[self presentModalViewController:second animated:YES];
}
好吧,尝试使用animated:NO
...
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.