【发布时间】:2013-01-03 10:14:32
【问题描述】:
我已经像这样以编程方式完成了调用。
NSString *phoneNumber = [[self.arrCategory objectAtIndex:0]objectForKey:@"MOBILE"];
NSString *phoneURLString = [NSString stringWithFormat:@"tel:%@", phoneNumber];
NSURL *phoneURL = [NSURL URLWithString:phoneURLString];
[[UIApplication sharedApplication] openURL:phoneURL];
但我不能从 iphone 拨打电话。有什么问题?
【问题讨论】:
-
请 NSLog thr phoneURLString 并检查它是否正确