The application that i am working on runs on both iPhone & iPad . One of the functionality that the application has, is to capture image from camera. I am using UIImageP
You should check camera is available or not:
if UIImagePickerController.isSourceTypeAvailable(.camera) { // Implement UIImagePickerController } else { // Show error message }