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

  • dougownsall

    dougownsall

    7 EKİM 2007
  • optionalinfo

    optionalinfo

    29 EKİM 2005
  • The Dubstep FX

    The Dubstep

    5 Mart 2011