if you look at this solution, it presents the following if statement:
if([UIImagePickerController isSourceTypeAvailable:UIImagePickerControllerSourceTypePhotoLibrary])
because I am new to Objective C, im not sure how this works. here is what i know: "UIImagePickerControllerSourceTypePhotoLibrary" is a value in an enum, isSourceTypeAvailable is a class method. Unfortunately I dont understand any more... can you provide an explanation on how this works ?