iOS 拨打电话的代码
来源:互联网 发布:ubuntu 安装mysql5.7 编辑:程序博客网 时间:2024/04/27 00:59
自己写的拨打电话的代码
#pragma mark - telAction- (void)telAction{ // 进入拨打电话页面 UIActionSheet *actionSheet = [[UIActionSheet alloc] initWithTitle:@"服务时间:工作日 09:00-17:30" delegate:self cancelButtonTitle:@"取消" destructiveButtonTitle:[NSString stringWithFormat:@"呼叫:%@-%@-%@",[kCustomerService substringToIndex:3],[kCustomerService substringWithRange:NSMakeRange(3, 3)],[kCustomerService substringFromIndex:6]] otherButtonTitles:nil]; actionSheet.actionSheetStyle = UIActionSheetStyleAutomatic; [actionSheet showInView:self.view];}#pragma mark - UIActionSheetDelegate- (void)actionSheet:(UIActionSheet *)actionSheet didDismissWithButtonIndex:(NSInteger)buttonIndex{ if (buttonIndex != [actionSheet cancelButtonIndex]) { NSString *URLString = [NSString stringWithFormat:@"tel://%@", kCustomerService]; if ([[UIApplication sharedApplication] canOpenURL:[NSURL URLWithString:URLString]]) { [[UIApplication sharedApplication] openURL:[NSURL URLWithString:URLString]]; } else { [self toast:@"当前设备中没有通话功能"]; } }}
0 0
- iOS 拨打电话的代码
- iOS开发 拨打电话的2种常用代码写法
- iOS 代码拨打电话的三种方式
- 代码实现电话的拨打
- iOS拨打电话的方式
- ios 拨打电话的方法
- 拨打网络电话--- iOS 拨打电话的三种方式
- iOS 拨打电话的两种方式
- iOS 拨打电话功能的实现
- iOS 拨打电话功能的实现
- iOS 拨打电话的两种方式
- iOS 3种拨打电话的方式
- iOS拨打电话的几种方式
- iOS拨打电话的三种方法
- iOS 拨打电话的几种类型
- iOS拨打电话的三种方法
- IOS拨打电话功能的实现
- iOS 拨打电话的方法总结
- jquery.from.js 上传excel用法小结
- 服务端进程突然奔溃客会发生什么?
- 楼层效果
- quizup中的好友聊天框中的挑战消息是可点击的按钮,这个在安卓上怎么实现呢?如下图 求高人指教!
- 一份BUG提交规范
- iOS 拨打电话的代码
- IO 文件拆分
- extjs6.2 学习笔记2-本地化
- 精通 CSS+DIV 网页样式与布局 156
- linux通过局域网访问windows共享文件
- spring boot + activiti-rest 做接口服务屏蔽authentication
- JAVA concurrent包学习--CyclicBarrier
- HDU2612 Find a way(双路BFS)
- 再看泛型