开发者

Is there a constant I can check to determine whether a device is capable of a Facetime call?

开发者 https://www.devze.com 2023-02-21 00:46 出处:网络
Is there a constant I can check to determine whether a device is capable of a Facetime call?I have a Facetime button in my app, but I only want to display it if the user is capable of making a Facetim

Is there a constant I can check to determine whether a device is capable of a Facetime call? I have a Facetime button in my app, but I only want to display it if the user is capable of making a Facetime call (i.e. user has iPhone 4 or iPad 2 right now, but want code to work for future 开发者_开发问答versions that come out).


Try using the canOpenUrl on facetime URL, as follows:

[[UIApplication sharedApplication] canOpenURL: [NSURL URLWithString: @"facetime://5555555555"]];
0

精彩评论

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

关注公众号