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.
ユーザーのアドレス帳を使用し、電話の冒頭にプレフィックス番号を追加する必要がある iPhone アプリ プロジェクトを開始しました。
これを実装する最良の方法は何ですか?このタイプの関数用に既に構築されたクラスはありますか?
アドレス帳プログラミングガイド
番号を取得したら:
NSString *phoneNumber = [NSString stringWithFormat:@"tel://%i%@", prefix, retrievedNumber]; [[UIApplication sharedApplication] openURL:[NSURL URLWithString:phoneNumber]];
私はそれをしていませんが、それでうまくいくはずです。