Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Modifying the ImagePicker Controller

 
rsheyeah hussain
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Everyone,

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.

Please find the source code at http://www.r-she-yeah.com/iphone

Appreciate your help !!!

Thanks a lot

rsheyeah
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

There is one thing in the documentation about an overlay to customize the look, but it still would have the delegate and with them only able to select one.
http://developer.apple.com/library/ios/#documentation/UIKit/Reference/UIImagePickerController_Class/UIImagePickerController/UIImagePickerController.html

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.

Good Luck

Mark
 
rsheyeah hussain
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for your reply Mark. Please see the code. It already uses AssetLibrary Framework and custom view to select multiple images.
 
rsheyeah hussain
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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...
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

Thanks

Mark
 
rsheyeah hussain
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic