开发者

Disable the use of SMS feature on an application when running on iPod

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");
}
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜