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

  • MaximumPCMag

    MaximumPCMag

    23 Temmuz 2010
  • My Name Is Jeff

    My Name Is J

    26 ŞUBAT 2008
  • theavettbrothers

    theavettbrot

    9 ŞUBAT 2007