I want to publish an application whose SMS feature to be disabled when running on iPods. I know I have to declare the required capabilities of the device into info.plist, but I wonder if I can ignore the declaration of the SMS capabilities on that file but still being able to use it after detecting the device type in my app.
<key>UIRequiredDeviceCapabilities</key>
<array>
<str开发者_如何学Going>wifi</string>
<!--string>sms</string-->
<string>still-camera</string>
</array>
Thanks
if ([[UIApplication sharedApplication] canOpenURL:[NSURL URLWithString:@"sms:11111"]]){
//do stuff for sms
}else{
NSLog(@"I don't suport sms");
}
精彩评论