What’s the correct URL for placing a call on an iPhone?

前端 未结 5 898
闹比i
闹比i 2020-12-11 06:55

Is the code for calling on the iPhone automatically

[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@\"tel:11111111111\"]]);
5条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-11 07:14

    Your second line is fine and will work.

    [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"tel://1111111111"]]);
    

提交回复
热议问题