iOS uiimagewritetosavedphotosalbum error nsphotolibraryaddusagedescription

Source: Internet
Author: User

Learn about iOS recently. Video Course [UIImage] (https://www.imooc.com/video/12718)

Related knowledge Points: store a local image in the system album .

Api:uiimagewritetosavedphotosalbum

Follow the instructions in the video tutorial dome to start the error as follows:

[Access]  This app had crashed because it attempted to access privacy-sensitive data without a usage description. The app ' s info.plist must contain an nsphotolibraryaddusagedescription key with a string value explaining to the user how The app uses this data.

As described above. You need to add the relevant descriptive text to the Info.plist.

Open info.plist, add corresponding configuration nsphotolibraryaddusagedescription, type default string, value fill in: Interface prompt text.

The effect is as follows:

Simulator 8p/11.4

Other:

Reference Link: http://www.cnblogs.com/KiVen2015/p/6627253.html

iOS uiimagewritetosavedphotosalbum error nsphotolibraryaddusagedescription

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.