views:

137

answers:

1

I access the camera via UIImagePickerController, and when I set the delegate to self, I can use the delegate methods. However, for what I have planned I need to have the delegate methods in another class, but whenever I try to do that, it will dismiss the the picker whenever I take a picture.

When I do this, it works:

preview.delegate = self;

But when I do this, it doesn't (viewController is the same class as self):

preview.delegate = viewController;

Everything compiles fine when I do it the second way. Obviously it has the UINavigationControllerDelegate and UIImagePickerControllerDelegate since it is the same as self, so I have no idea why it doesn't work.

What I want is to have a completely different class that handles all the delegate methods, but for testing purposes I'm using the current View Controller since I know it works when the delegate is set to self.

A: 

Yes, that was it. Thank you

iSkythe