0
我有一個電話號碼作爲標題的UIButton。使用按鈕標題打開電話應用程序
此代碼是否會以標題編號打開手機應用程序?
- (IBAction)callContact:(id)sender
{
[[UIApplication sharedApplication] openURL:
[NSURL URLWithString:telfButton.titleLabel.text]];
}
它給了我一個錯誤。