在天气应用程序中(在 basilar iPhone 应用程序中)有一个带有“i”的按钮用于获取信息;当你按下这个“i”时,会有一个有趣的效果来改变 View ;这个效果的名字是什么?我想在我的应用程序中重播它。
最佳答案
它是 UIViewController
和 UIView
之间的模式转换样式。
在您描述的示例中,正在加载的 UIViewController 以模态方式呈现,过渡样式设置为 UIModalTransitionStyleFlipHorizontal
UIViewController *controllerToBeLoaded = [[UIViewController alloc] init];
self.modalPresentationStyle = UIModalTransitionStyleFlipHorizontal;
[self presenteModalViewController:controllerToBeLoaded animated:YES];
self
也是一个 UIViewController
关于IOS:更改 View 的建议,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6724245/