【发布时间】:2012-01-23 02:07:54
【问题描述】:
我的 iPhone 应用程序中当前显示了一个 UIViewController,并且当用户点击按钮时我显示了第二个 ViewController。
但是,我想更改它。我希望这样当用户滑动手指时,第二个视图控制器出现在右侧,就好像用户正在浏览本机照片应用程序中的照片一样。
我该怎么做?假设第二个 UIViewController 已经创建并分配,只是没有显示。我想我需要
1) Determine when the user is sliding their finger using some touchesBegan function
2) Somehow display only a portion of the second view controller as the user slides their finger across.
对其中任何一个有什么想法吗?我不知道该怎么做?
【问题讨论】:
标签: iphone ios uiview uiviewcontroller