Having problem with my application, I seem to be new in ios. My project contains a rootViewAppDelegate,*rootViewController*,and cameraViewController.
My rootViewcontroller has a Menu type code implemented in it that when a button is pressed it goes to cameraViewController.My cameraViewController contains a UIImagepicker.
In following a tutorial in the net about UIImagePicker in IPAD, it says there that I should paste some part of the code in the delegate. So I pasted it in the rootViewAppDelegate. When I run the project. Nothing is displaying in the cameraViewController. Did I miss something wrong? Thanks for reply.
Not having all the details, what I think is happening is the following:
What probably needs to be done is to use your cameraViewController as the UIImagePicker delegate – to do so you need to go into your: cameraViewController and set it as being a follower of the UIImagePickerDelegate protocol:
Then within your UIImagePicker you need to set the delegate to be the cameraViewController – you can do this in code if you have a source file for your UIImagePicker by saying something like:
OR in InterfaceBuilder/Storyboard, you need to connect the delegate property of the UIImagePicker to the cameraViewController.
This will then know that the cameraViewController is the delegate of the UIPicker and trigger it appropriately.