iOS判断设备的相机是否可用
2014-10-28 16:13
309 查看
if (![UIImagePickerController isSourceTypeAvailable:UIImagePickerControllerSourceTypeCamera]) { // 相机不可用 UIAlertView *alert = [[UIAlertView alloc] initWithTitle:nil message:@"您的设备不支持拍照!" delegate:nil cancelButtonTitle:@"确定" otherButtonTitles:nil, nil]; [alert
show]; return; }
show]; return; }
相关文章推荐
- [Swift 工作tips] 之 iOS 中判断当前设备的相机是否可用
- 判断iphone ipad 设备上的相机是否可用
- IOS判断设备是否已越狱
- IOS判断设备是否已越狱(isJailbroken)
- iOS设备是否越狱的判断代码
- iOS设备是否越狱的判断方法
- ios如何判断设备上是否安装了某款软件
- IOS判断设备是否已越狱(isJailbroken)
- IOS之——判断设备是否越狱
- IOS 判断手机设备上是否安装某款应用
- iOS : 判断运行设备类型是否是iPad
- iOS设备是否越狱的判断代码
- IOS判断设备是否已越狱(isJailbroken)
- IOS 判断设备是否可以打电话
- IOS7判断程序是否可用相机
- IOS之——判断设备是否越狱
- iOS开发有用代码(有判断邮箱格式是否正确的代码、图片压缩、亲测可用的图片上传代码和实现点击图片进行跳转的代码等。)
- 转 ios 里如何判断当前应用的定位服务是否可用
- iOS笔记:判断相机是否被授权,应用是否能够打开相机
- iOS设备是否越狱的判断代码