SORU
28 Mart 2011, PAZARTESİ


Arama erişim kodu ile bir telefon numarası programlı

Nasıl programlı olarak iOS numarası ve erişim kodu içeren bir telefon numarasını arayabilir miyim?

Örneğin:

sayı: 900-3440-567
Erişim Kodu: 65445

CEVAP
28 Mart 2011, PAZARTESİ


UIDevice *device = [UIDevice currentDevice];
if ([[device model] isEqualToString:@"iPhone"] ) {
    [[UIApplication sharedApplication] openURL:[NSURL URLWithString:[NSString stringWithFormat:@"tel:130-032-2837"]]];
} else {
    UIAlertView *notPermitted=[[UIAlertView alloc] initWithTitle:@"Alert" message:@"Your device doesn't support this feature." delegate:nil cancelButtonTitle:@"OK" otherButtonTitles:nil];
    [notPermitted show];
    [notPermitted release];
}

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

YORUMLAR

SPONSOR VİDEO

Rastgele Yazarlar

  • Abe Olandres

    Abe Olandres

    16 EYLÜL 2006
  • echifitness

    echifitness

    9 Kasım 2008
  • The Slow Mo Guys

    The Slow Mo

    15 AĞUSTOS 2010