iOS local photo multi-Select implementation

Source: Internet
Author: User

Hint: iOS8 need to change a code, that is, set ScrollView scroll to the bottom of the code, you can remove the running source

It is quite a bother to write yourself! Originally intended to use the Internet for a long time elcimagepickercontroller, but some features do not meet my requirements, in the above changes, but also feel that the idea is not clear, and a lot of code can not understand, so according to their own ideas to write an example! Basically in line with their expectations, but do not know in hundreds of photos will not stutter, take a step to calculate a step! The following are expected:


Click "Select Photo" to open the image 2; open the "Local Camera" album by default, you can click "album" to select photos from other albums, click "OK" to return to interface 1 and display the selected picture in UITableView.

There is a need to understand knowledge:

Alassetslibrary:

Apple's official:

https://developer.apple.com/library/ios/documentation/AssetsLibrary/Reference/ALAssetsLibrary_Class/Reference/ Reference.html

If the English is not good, then this is I think the description is the clearest, because my English is not very good!

http://blog.csdn.net/shenjx1225/article/details/9293269

Among the problems encountered:

1, need to set the global alassetslibrary, otherwise alasset (model) in the delivery will be destroyed with the creation of the page lost content;

2. The child page passes the value to the parent page;

Not much to say, you can download the source view.

csdn:http://download.csdn.net/detail/wuwo333/8131841


iOS local photo multi-Select implementation

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.