This week's book giveaway is in the General Computing forum. We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line! See this thread for details.
I would really really appreciate if you can advice/help me with the "Select All" images functionality in the ImagePicker Controller . When the user clicks on "Select All" button, all the images should be toggled to display that they are "selected". And on clicking "Done" - these selected images should be accessible for performing other operations like upload etc. The code already contains the logic for displaying images from the photo album, toggling selection of one image at a time. I would like to select all and display the overlay image (tick mark ) image on all the images.
I am stuck in achieving the selection/deselection of all the images simultaneously. Can anyone help.
Unfortunately, the UIImagePicker is written to only allow one image/media to be selected, it does not have SelectAll. In order to do that you would have to write your own custom UIView to do that. You cannot even inherit from UIImagePicker.
Writing your own custom UIView is a huge topic. Too big for a forum post. You will unfortunately have to find any tutorial or book or documentation that is out there.
Thanks for your reply Mark. Please see the code. It already uses AssetLibrary Framework and custom view to select multiple images.
rsheyeah hussain
Greenhorn
Joined: Jan 10, 2010
Posts: 11
posted
0
I just want to be able to select all the images on click of Select All button .And the display to show an overlay image as done on selection of 1 image...
Unfortunately, I am not allowed to download your files.
If you already have the select all button, then why not just loop through all the images and whatever you are using to "select" one, use it to select each and every one of them.
Maybe you can post that part of your code here in the forum.