iOS album, Camera (single picture selection)

Source: Internet
Author: User

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)

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.