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

beardedpig

macrumors member
Original poster
Dec 17, 2008
57
0
Does anyone know how to get this to fire when saving an image with the camera?

I have tried setting the delegate of the class like this:

picker.delegate = self

and

picker.delegate =appDelegate

where appDelegate is set to the application delegate.

The code where this resides is in RootViewController and is complying to the right delegate protocols.

However nothing I do will get the didFinishPickingImage method to fire?

Thanks for any pointers
 

ghayenga

macrumors regular
Jun 18, 2008
190
0
Does anyone know how to get this to fire when saving an image with the camera?

I have tried setting the delegate of the class like this:

picker.delegate = self

and

picker.delegate =appDelegate

where appDelegate is set to the application delegate.

The code where this resides is in RootViewController and is complying to the right delegate protocols.

However nothing I do will get the didFinishPickingImage method to fire?

Thanks for any pointers

picker.delegate = self; is correct.

And in your RootViewController.h did you set it to implement the UIImagePickerDelegate protocol? i.e.

RootViewController : NSObject <UIImagePickerDelegate>{
 

beardedpig

macrumors member
Original poster
Dec 17, 2008
57
0
cha ching!

Thanks!!!!!

I had the root view controller set to the correct delegates.....but...

you brought to my attention I had rather foolishly placed the didFinishPickingImage inside my custum UIImagePickerController and not where it was supposed to be in the root view controller!

What a pillock I am!!!

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