iphone - 向上滑动UIView

标签 iphone objective-c cocoa cocoa-touch

嗨,我想通过按钮向上滑动,单击原始 UIView 上的另一个 UIView,并且在用户单击后退按钮后,想要返回到原始 UIView。 就像 Facebook 应用程序中的通知 View ,或从相机应用程序中显示照片库。

我怎样才能实现这一点?

最佳答案

您要查找的方法可以在 UIViewController 中找到。在您的 View Controller 中只需执行以下操作:

[self presentModalViewController:viewControllerOfViewToSlideUp animated:YES];

关于iphone - 向上滑动UIView,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5374937/

相关文章:

iphone - 奇怪的 UITableView 错误

macos - 将非视网膜显示器连接到带有视网膜的 MBP 时会发生什么?

iphone - 如何在我的应用程序本地文档目录中将 NSString 另存为 .txt 文件?

iphone - 发布 NSTimer iPhone?

iphone - 在 iOS 中将事件添加到生日日历

iphone - 有没有办法在 Objective-C 中程序运行时不断调用方法?

ios - 专为 Iphone 6 设计的调整大小应用程序可在 iphone 5s 中正确缩放

iphone - 使 UICollectionView 中的 insertItemsAtIndexPath 不设置动画

iphone - 在 iPhone 上进行应用内购买时强制用户登录

objective-c - 释放使用 initWithInteger : vs. numberWithInt 创建的 NSNumber 实例: