Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
デバイスから通話できないことをどのように知ることができますか? たとえば、電子メールの場合:[MFMailComposeViewController canSendMail] 電話をかけるものはありますか?
[MFMailComposeViewController canSendMail]
if ([[UIApplication sharedApplication] canOpenURL:[NSURL URLWithString:@"tel:+123456"]]) { ... }
これは、次の呼び出しに使用できます。
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"tel:12125551212"]];
詳細については、次のリンクを参照してください。
iPhoneURLScheme リファレンス