开发者

iOS Deployment Target for Universal App

Good morning, stackoverflow folks.

I'm having a small problem, and I can't find a solid answer via google, stackoverflow, or from the Apple documentation. Perhaps I am not searching for the right keywords. Anywho, on with my simple, stupid question(s):

I'm currently developing a universal app. I'd like for the iOS Deployment Target to be set for 3.2+ for the iPad, and 4.0+ for iPhone/iPod Touch, yet there is only one field for the setting. Should I be setting this value to 3.2 or 4.0? Isn't 3.2 an iPad-only SDK? Does this value need to be set in both the Project Build Settings and the Target Build Settings?

Please note: I'm using 'Latest iOS (currently set to 4.2)' as the Base SDK, and after reading the following, I stil开发者_JS百科l can't derive a definitive answer:

http://developer.apple.com/library/ios/#documentation/DeveloperTools/Conceptual/cross_development/Configuring/configuring.html

Any help in the matter would be greatly appreciated.Thanks!


You should set Base SDK to the latest, and set Deployment Target to 3.2. THEN––and this is important––if you use any API that is available ONLY in 4.0 or later (that is, NOT in 3.2), then you must do a runtime check to see if that API is actually available, and if not, do something else.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜