iOS 4 的 UIPageViewController 模板回退

发布于 2024-12-13 10:38:48 字数 409 浏览 5 评论 0原文

我在 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

分開簡單 2024-12-20 10:38:48

不,使用 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文