判断iphone ipad 设备上的相机是否可用 if ([UIImagePickerControllerisSourceTypeAvailable:UIImagePickerControllerSourceTypeCamera]) { 相机可用 }