Uiimagepickercontroller
(1) Agent<uinavigationcontrollerdelegate, uiimagepickercontrollerdelegate>Delegate(2) Several basic property settings SourceType//Set Resource Acquisition typeAllowsediting//whether to allow picture editing(3) Several judgment class methods/** Whether this type of resource can be obtained*/+(BOOL) issourcetypeavailable: (Uiimagepickercontrollersourcetype) sourcetype; /** Whether you can get the type of camera (front and rear)*/+(BOOL) iscameradeviceavailable: (Uiimagepickercontrollercameradevice) Cameradevice; /** Whether to get the flash*/+( BOOL) Isflashavailableforcameradevice: (Uiimagepickercontrollercameradevice) Cameradevice;4) Proxy method (only 2 are available after iOS4)- (void) Imagepickercontroller: (Uiimagepickercontroller *) Picker Didfinishpickingmediawithinfo: (NSDictionary<NSString *,id> *) info;- (void) Imagepickercontrollerdidcancel: (Uiimagepickercontroller *) Picker;/** Key in Parameter Info*/NSString*Constuiimagepickercontrollermediatype; Specifies the type of media selected by the user (the last extension of the article) NSString*Constuiimagepickercontrolleroriginalimage; original picture NSString*Constuiimagepickercontrollereditedimage; modified picture NSString*Constuiimagepickercontrollercroprect; crop size NSString*ConstUiimagepickercontrollermediaurl; The urlnsstring of the media*ConstUiimagepickercontrollerreferenceurl; The urlnsstring of the original*ConstUiimagepickercontrollermediametadata: This value only works when the data source is the camera./** Uiimagepickercontrollermediatype*/the Uiimagepickercontrollermediatype contains Kuttypeimage and kuttypemoviekuttypeimage containing:Constcfstringref kuttypeimage; abstract type of pictureConstcfstringref kuttypejpeg;Constcfstringref kUTTypeJPEG2000;Constcfstringref Kuttypetiff;Constcfstringref kuttypepict;Constcfstringref kuttypegif;Constcfstringref kuttypepng;Constcfstringref kuttypequicktimeimage;Constcfstringref KuttypeappleicnsConstcfstringref kuttypebmp;ConstCfstringref Kuttypeico; Kuttypemovie contains:Constcfstringref kuttypeaudiovisualcontent; abstract Sound videoConstcfstringref Kuttypemovie; abstract Media Format (sound and video)Constcfstringref kuttypevideo; only video no soundConstcfstringref Kuttypeaudio; only sound no videoConstcfstringref Kuttypequicktimemovie;Constcfstringref kuttypempeg;Constcfstringref kUTTypeMPEG4;Constcfstringref kUTTypeMP3;Constcfstringref Kuttypempeg4audio;ConstCfstringref Kuttypeappleprotectedmpeg4audio;
iOS album, Camera (single picture selection)