aspose file tools*
The moose likes iOS and the fly likes Modifying the ImagePicker Controller Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Mobile » iOS
Bookmark "Modifying the ImagePicker Controller" Watch "Modifying the ImagePicker Controller" New topic
Author

Modifying the ImagePicker Controller

rsheyeah hussain
Greenhorn

Joined: Jan 10, 2010
Posts: 11
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

Joined: Feb 05, 2001
Posts: 17257
    
    6

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


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
rsheyeah hussain
Greenhorn

Joined: Jan 10, 2010
Posts: 11
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
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

Joined: Feb 05, 2001
Posts: 17257
    
    6

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

Joined: Jan 10, 2010
Posts: 11
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Modifying the ImagePicker Controller