I'm using this peace of code to check if the device that is running my app can take pictures. If the device doesn't have a camera, it will start the app with a different viewcontroller that displays a message.
There are 2 things you need to check in order to get it working:
- the storyboard name in the call
storyboardWithName:@"Main" bundle:nil
- the viewcontroller id for the call
instantiateViewControllerWithIdentifier:@"noCamera"
If you have any questions, just drop me an email.