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