简体   繁体   English

iPhone SDK 4.0兼容性

[英]iphone sdk 4.0 compatibility

i recently installed iphone sdk 4.0 on the laptop mac 10.6.4 snow leopard 我最近在笔记本电脑mac 10.6.4雪豹上安装了iPhone SDK 4.0

my iphone device OS firmware is 3.1.2 so can this new SDK 4.0 work on my iphone or i have to update my ipohone to work on OS 4 我的iPhone设备操作系统固件为3.1.2,因此此新SDK 4.0可以在我的iPhone上运行,还是我必须更新我的ipohone才能在OS 4上运行

i mean is there somewhere in the new xcode to set the iphone to 3.1.2? 我的意思是在新的xcode中将iPhone设置为3.1.2的地方吗?

In target settings there is "iPhone OS Deployment Target" setting - set it to appropriate OS version so your program will be compatible with it. 在目标设置中,有“ iPhone OS部署目标”设置-将其设置为适当的OS版本,以便您的程序与之兼容。

Remember also that if you make some calls from new APIs (eg appeared in 4.0) you must check if they are available in run-time to avoid application crashes when run on older OS versions. 还要记住,如果您使用新的API(例如,出现在4.0中)进行了一些调用,则必须检查它们是否在运行时可用,以避免在较旧的OS版本上运行时应用程序崩溃。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM