SORU
8 ŞUBAT 2011, Salı


Bir telefon programlı olun

Nasıl bir program aracılığıyla telefon görüşmesi iPhone'da yapabilir miyim? Aşağıdaki kodu denedim ama hiçbir şey olmadı:

NSString *phoneNumber = mymobileNO.titleLabel.text;
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:phoneNumber]];

CEVAP
8 ŞUBAT 2011, Salı


MuhtemelenmymobileNO.titleLabel.metindeğer düzenini içermeztel://

Kodunuzu bu gibi görünmelidir:

NSString *phoneNumber = [@"tel://" stringByAppendingString:mymobileNO.titleLabel.text];
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:phoneNumber]];

Bunu Paylaş:
  • Google+
  • E-Posta
Etiketler:

YORUMLAR

SPONSOR VİDEO

Rastgele Yazarlar

  • Christopher Bill

    Christopher

    30 NİSAN 2009
  • Fraser Raft

    Fraser Raft

    9 Mart 2010
  • MusicDeluxeTV

    MusicDeluxeT

    14 Mayıs 2010