Previously my first iPhone Application was rejected by Apple App Store. That application has a feature which allow users to take a photo or select an existing photo in the gallery.
As iPod Touch does not have a camera, the application crashes when user decide to take a photo. That’s why App Store rejected it.
So i have to check if the camera of the device is available. The following piece of code can do.
if ([UIImagePickerController isSourceTypeAvailable:UIImagePickerControllerSourceTypeCamera]) { // If camera is avaialble else { // If camera is NOT avaialble }
Done =)
Reference: Checking iPhone for Camera Support and Video Recording
cool! thanks!
LikeLike
you are welcome. =)
LikeLike