Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

newtoiphonesdk

macrumors 6502a
Original poster
You can tag an ActionSheet in XCode, allowing you multiple action sheets to run with the one,
Code:
actionSheetUIActionSheet *)popup clickedButtonAtIndex:
method. Is there any way to do the same thing with a UIImagePickerController?
 
I'm not understanding the question. Are you talking about multiple buttons?
 
Last edited:
Yes, all delegates of imagepicker view returns picker itself, so when you add a tag to any of it's view, you can retrieve it later

Code:
UIImagePickerController *pic, *pic2;
    pic.topViewController.view.tag = 1;
    pic2.topViewController.view.tag = 2;
And on returning function simply do

Code:
- (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingImage:(UIImage *)img editingInfo:(NSDictionary *)editInfo {

if (picker.topViewController.view.tag == 1) {

}else {

}
}
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.