gpt4 book ai didi

iphone - 推送和弹出 View Controller - 动画

转载 作者:行者123 更新时间:2023-12-03 21:00:20 25 4
gpt4 key购买 nike

我正在为我的应用程序使用导航 Controller ,因为我的很多 View 都是分层的。但是,我想在有人按下按钮时推送设置 View 。但是,我不想从右向左设置动画,因为我不想给用户留下这样的印象:设置是堆栈中位于其下方的 View 的 subview 。

有什么方法可以让 View 从下到上变化动画吗?

或者另一种轻松切换 View 的方式。推送和弹出 View 是如此简单!

谢谢!

最佳答案

您可以使用模态视图 Controller ,默认情况下它会从下到上转换:

- (void)presentModalViewController:(UIViewController *)modalViewController animated:(BOOL)animated

其中modalViewController是你想要从下到上滑动的 View Controller ,动画是YES

关于iphone - 推送和弹出 View Controller - 动画,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1076526/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com