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

  • International Secret Agents Concerts

    Internationa

    2 Aralık 2008
  • Microsoft Help & Training Videos

    Microsoft He

    31 Mart 2009
  • TotalxLuna

    TotalxLuna

    27 Kasım 2011