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
[self.imagePicker setSourceType:UIImagePickerControllerSourceTypePhotoLibrary];
# ELSE
[self.imagePicker setSourceType:UIImagePickerControllerSourceTypeCamera];
# END
EDIT