On iPad, UIImagePickerController must be presented via UIPopoverController
OniPad,UIImagePickerControllermustbepresentedviaUIPopoverController可以用以下方法来判断设备的类型选择不同的Controllerif(UI_USER_INTERFACE_IDIOM()==UIUserInterfaceIdiomPhone){//WeareusinganiPhoneUIActionSheet*alertSheet=[