2010-12-14 155 views

回答

3

像這樣:

[[UIApplication sharedApplication] openURL:[NSURL URLWithString:yourURLHere]]; 
1
NSURL *someHTTP_or_HTTPS_URL; 
if ([[UIApplication sharedApplication] openURL: someHTTP_or_HTTPS_URL]) { 
    // success 
} else { 
    // failure 
} 
0

喜歡這張 [[UIApplication的sharedApplication]的OpenURL:[NSURL URLWithString:yourURLHere]];

您也可以使用此

撥號號碼[UIApplication的sharedApplication]的OpenURL:@「電話:// 123245655];

享受..

相關問題