views:

49

answers:

1

hello all I am using Uiimagepickercontroller to record a vedio there I need to implement two delegaes.. 1 is UINavigationcontroller delegate and 2 is UIImagepickercontroller delegate..If we not use navigationcontroller delegate its giving me warning at the code picker.delegte=self;

what is the necessity of UINavigationControllerDelegate.. My requirement is I am recording a vedio automatically.. so after it stops recording It should go to the Screen saying that useThis ,Discard options and it plays the vedio what is captured?

Is there any way.. to do that .. could any one tell me the way for this and what is the Uinavigtaioncontrollerdelegate exactly?

Thank you all

+1  A: 

UIImagePickerController is a subclass of UINavigationController. It requires its delegate to implement the UIImagePickerControllerDelegate protocol while still implementing the UINavigationControllerDelegate protocol for its superclass.

That means you need to declare your delegate class like this:

@interface MyDelegate : NSObject <UIImagePickerControllerDelegate,
                                  UINavigationControllerDelegate>

And then implement the required methods for both protocols.

Todd Yandell
Thankyou for your response.. But how i use this navigation controller delegate to see the preview of video that is captured...Thank you
ratna
It will automatically allows you to preview the video, right? What is your problem?
vodkhang
no ,, its not showing like that .. I hidden the cameracontrols and recording so in didfinishmethod I dismiss the viewcontroller so its just coming back the screen it gets called from.. Its not showing the Preview..
ratna
any help to get preview in this case
ratna