iOS local photo multi-Select implementation

Source: Internet
Author: User

Tip: iOS8 need to change a code. That is, set the ScrollView to scroll to the exact piece of code. You can remove the re-execution source code

It is quite a bother to write yourself!

Originally intended to use the Internet spread very long elcimagepickercontroller, but some features do not meet my requirements, in the above changes, but also think the idea is not clear. And very much code can not understand, so according to their own ideas to write a demo sample! 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 Photos" to open the image 2; The default is to open the "local Camera" album, you can click "Register" to select the other album photos; Click "OK" to return to interface 1 and display the selected picture in UITableView.

You need to know:

Alassetslibrary:

Apple's official:

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

If the English is not very good, then the following this is I think the description of the most clear, 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, to be able to download the source code to 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.