2010-06-23 90 views

回答

6
NSString *phoneNumber = @"+33(0)7324 65335-22"; 
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:[NSString stringWithFormat:@"tel:%@", phoneNumber]]]; 

我不知道有關 「(0)」 ...

+0

有任何文檔嗎? – dontWatchMyProfile 2010-06-23 19:59:02

+2

這只是UIApplication打開一個URL。有關不同功能的可用前綴的完整列表,請查看:http://iphonedevelopertips.com/cocoa/launching-other-apps-within-an-iphone-application.html – Pripyat 2010-06-23 20:29:45