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.
デバイスが Facetime 通話に対応しているかどうかを判断するために確認できる定数はありますか? アプリに Facetime ボタンがありますが、ユーザーが Facetime 通話を行うことができる場合にのみ表示したいと考えています (つまり、ユーザーは現在 iPhone 4 または iPad 2 を持っていますが、将来のバージョンでコードが機能するようにしたいと考えています)。 .
次のように、facetime URL で canOpenUrl を使用してみてください。
[[UIApplication sharedApplication] canOpenURL: [NSURL URLWithString: @"facetime://5555555555"]];