iOS 4 的 UIPageViewController 模板回退
我在 XCode 4.2 中基于 iOS5 的 PageViewController 模板创建了一个应用程序。
我现在正在尝试使其适用于 5.0 之前的 iOS 版本。以下是我能想到的问题,但我想它们并不是唯一的问题:
- 故事板在iOS5之前不可用,所以我必须重新编码 一切都使用笔尖。有更好的办法吗?
- UIPageViewController 在 iOS 5 之前不存在...我如何用类似但适用于旧版本的东西替换它?
最后,如果我创建一个仅适用于 iOS5 的应用程序,到目前为止已更新的设备的百分比大约是多少?
谢谢你!
I created an app based on the PageViewController template for iOS5 in XCode 4.2.
I am now trying to make it work for iOS versions prior to 5.0. Here are the problems that I can think of, but I guess they are not the only ones:
- Storyboards are not available before iOS5, so I would have to recode
everything using nibs. Is there a better way? - UIPageViewController does not exist before iOS 5... How can I replace it with something similar but that works with older versions?
Lastly if I create an app that is iOS5 only, what is roughly the percentage of the devices that have been updated so far?
Thank you!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
不,使用 nibs 就是在没有故事板的情况下工作的方式。
如果您非常喜欢 iOS 4 中的卷页效果,您可以查看
http:// api.mutado.com/mobile/paperstack/
但要让它可用需要做很多工作。使用简单的滚动视图或类似的东西要容易得多。
最后我听说三分之一已经升级了。
No, using nibs is how you work without storyboards.
If you're super hot set on a page curl effect in iOS 4, you could look at
http://api.mutado.com/mobile/paperstack/
but it would be a lot of work to get it usable. Much easier to just use a simple scroll view or something like that.
Last I heard about a third had upgraded.