iPhone App requires GPS, how to prevent to install on iPad touch, iPad w/o GPS
I'm about to publish a App that requires GPS.
How can I prevent users to install it on a iPod-Touch and 开发者_运维百科iPad w/o GPS?
//Stefan
There’s a UIRequiredDeviceCapabilities
key in the Info.plist
file for this. It can be either a dictionary or an array. In your case you can make it an array and add a single string item that contains the gps
string. More information in the iOS Application Programming Guide (or Google for the key name). You should read the App Programming Guide anyway, it contains a lot of important information.
精彩评论