我在一个视图上有一个按钮,点击哪个下一个视图应该在翻转视图中打开。
谁能帮我??
我将假设您的视图由视图控制器管理,您想要翻转的视图也是如此。
一个相对简单的方法是使用 presentModalViewController:animated 呈现新视图:
MyViewController* mvc = [[[MyViewController alloc] init] autorelease];
mvc.modalPresentationStyle = UIModalPresentationFullScreen;
mvc.modalTransitionStyle = UIModalTransitionStyleFlipHorizontal;
[self presentModalViewController: mvc animated: YES];