Is there a compiler directive I can use to compile a different line of code when targetting the simulator as opposed to my device. Something like:
# IF SIMULATOR
#if TARGET_IPHONE_SIMULATOR [self.imagePicker setSourceType:UIImagePickerControllerSourceTypePhotoLibrary]; #else [self.imagePicker setSourceType:UIImagePickerControllerSourceTypeCamera]; #endif