开发者

Device detect with xcode ! {iPhone SDK}

开发者 https://www.devze.com 2022-12-26 15:04 出处:网络
is there any way to detect device with xcode ? i mea开发者_如何学运维n when my app runs on the iphone 3g , show an alert an says this feature works only 3gs

is there any way to detect device with xcode ? i mea开发者_如何学运维n when my app runs on the iphone 3g , show an alert an says this feature works only 3gs thank you .


Don't detect by device, but by feature.

For example, if you require the compass, add the magnetometer value into the UIRequiredDeviceCapabilities array of the Info.plist (and the AppStore will filter the app for iPhone 3G.)

See http://developer.apple.com/iphone/library/documentation/iPhone/Conceptual/iPhoneOSProgrammingGuide/AdvancedFeatures/AdvancedFeatures.html for detail.

0

精彩评论

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

关注公众号