Apple recommends not searching for hardware version, but for the specific feature in which you are interested.
So how may I detect if there is a front camera on the device to be able to disable some features ?
<代码>[UIImagePickerController isSourceTypeAvailable:UIImagePickerControllerSourceTypeCamera] 仅指有一段地方的照相机。