iOS 4 中的 Twitter 集成 &5 应用程序

问题描述:

我目前正在开发应该集成 Twitter 的应用程序.还应构建该应用程序,以便它可以在 iOS 4.3 设备上使用.我们希望在 iOS 5 上使用内置的 Twitter 框架,并可能放弃对 iOS 4 设备的 Twitter 支持(目前还不确定).

I am currently working on app which is supposed to have Twitter integration. The app should also be built so it can be used on iOS 4.3 devices. We'd like to use the built in Twitter Framework on iOS 5 and possibly drop twitter support for iOS 4 devices (not sure about that yet).

问题是:这可能吗?据我所知,我只能在 iOS 版本上静态链接,这意味着使用 Twitter 框架构建的应用程序无法在 iOS 4 设备上运行.如果这是可能的,我将如何链接 Twitter 框架,以便我可以在 iOS 5 上运行具有内置 Twitter 支持的应用程序,而忽略 iOS 4 上的框架.

The question is: Is this possible? As far as I can tell I can only link statically on iOS builds, which would mean an App built with the Twitter framework can not be run on an iOS 4 device. If this is possible, how would I got about linking the Twitter framework so I can get the app running on iOS 5 with built in Twitter support and ignore the Framework on iOS 4.

这是可能的.Apple 引入了旧版本不支持的框架的弱链接.您可以在此处获得有关弱链接的更多详细信息.

It is possible. Apple has introduced weak linking of frameworks that are not supported on older versions. You can get more details regarding weak linking here.

此处查看另一个关于弱链接的类似问题.希望这能解决您的问题.

See one more similar question regarding weak linking here. Hope this solves your problem.