开发者

SDK and iOS Deployment Target.

开发者 https://www.devze.com 2023-02-04 16:52 出处:网络
I build my project with the latest开发者_如何学编程 SDK (4.1) and set \"iOS Deployment Target\" (3.0). Can I run my project on a real iPhone 3.0 if I use some methods of 4.0 sdk?You can only run your

I build my project with the latest开发者_如何学编程 SDK (4.1) and set "iOS Deployment Target" (3.0). Can I run my project on a real iPhone 3.0 if I use some methods of 4.0 sdk?


You can only run your project on OS 3 devices if you conditionally code around the OS 4 methods you want to use. If you called a method that only existed in iOS 4 on an iOS 3 device your app would crash. You can do this through both checking iOS version numbers and using the [... respondsToSelector:] method.

0

精彩评论

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