why we need to implement UiNavigationcontroller delegate in ImagePickerController in iphone
hello all I am using Uiimagepickercontroller to record a video there I need to implement two delegates.. 1 is UINavig开发者_Go百科ationcontroller 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 video 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
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.
精彩评论