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ş:
Bir iphone veya bir android telefon HT...
Nasıl erişim kodu ekli bir özelliği ar...
Nasıl doğru erişim için `` / bu içeriğ...
Dosyaları bul: Team Foundation Server ...
Nasıl telefon numarası Mobil Safari'de...