您的位置:首页 > 移动开发 > IOS开发

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; }
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  ios 苹果