我可以使用 Objective-C 块并仍然在 iOS 4 之前的设备上运行吗?

发布于 2024-12-10 05:22:20 字数 704 浏览 0 评论 0原文

可能的重复:
为 iPhone 4 SDK 构建的 Blocks 在部署到 iPhone OS 3.0 时可以工作吗?
在 iOS 上检查运行时块的可用性 < /p>

想要在 iOS 5 中使用新的 Twitter 支持,但主 Twitter 控制器不使用委托,而是要求类的客户端传入一个块作为完成处理程序。

我喜欢块并且想使用它们,但到目前为止我一直能够保持 iOS 3.1.3 兼容性。如果我使用块,我是否需要将部署目标提高到 iOS 4 并放弃任何 iOS 4 之前的用户?有什么办法可以维持3.1.3的支持吗?

如果我最终不得不需要 iOS 4,我的老用户会怎样?他们是否会在 App Store 的“更新”选项卡中看不到新更新,或者应用程序下载后无法运行?是否有任何有关更改部署目标如何与 App Store 交互的文档?

Possible Duplicate:
Can Blocks built for the iPhone 4 SDK work when deployed to iPhone OS 3.0?
Check for availability of blocks at runtime on iOS

I want to use the new Twitter support in iOS 5, but instead of using a delegate, the main Twitter controller requires clients of the class to pass in a block as a completion handler.

I love blocks and want to use them, but I've so far been able to maintain iOS 3.1.3 compatibility. If I use blocks, do I need to raise my deployment target to iOS 4 and abandon any pre-iOS 4 users? Is there any way to maintain 3.1.3 support?

If I do end up having to require iOS 4, what happens to my older users? Will they just not see the new update in their Updates tab in App Store or will the app download and fail to work? Is there any documentation on how changing the deployment target interacts with the App Store?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

-黛色若梦 2024-12-17 05:22:20

即使你能让这些块正常工作,这也是一个坏主意。您不知道 Twitter 库中是否还有任何其他 iOS 4 特定功能,一旦您让这些块正常工作,这些功能可能会中断。您应该坚持使用代码和 Twitter 客户端之间可用的最低操作系统。

This is a bad idea even if you can get the blocks working. You don't know if there are any other iOS 4 specific functions in the Twitter library that might break once you get the blocks working. You should stick with the minimum OS usable between your code and the Twitter client.

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