Question

I'm working with tabBarBased application.At the time of clicking the one of the tabBarButton it opens the photo album .In photo album there is a cancel button on top(navBar) right??Here i want to perform action event for cancel button click...while click on the cancel button i want to go to the another tabBar view...

Please help me out to do this...

Thank You in advance for your consideration and effort... Regards, Renuga

Was it helpful?

Solution

Here's the class definition for UIImagePickerControllerDelegate:

@protocol UIImagePickerControllerDelegate<NSObject>
@optional
// The picker does not dismiss itself; the client dismisses it in these callbacks.
// The delegate will receive one or the other, but not both, depending whether the user
// confirms or cancels.
- (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingImage:(UIImage *)image editingInfo:(NSDictionary *)editingInfo __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_NA,__MAC_NA,__IPHONE_2_0,__IPHONE_3_0);
- (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info;
- (void)imagePickerControllerDidCancel:(UIImagePickerController *)picker;

@end

I think one of the methods mentioned above is what you need:

- (void)imagePickerControllerDidCancel:(UIImagePickerController *)picker;

OTHER TIPS

set the selectedViewController property of UITabBarController to the view controller you want to switch to. Assigning a new view controller to this property changes the currently displayed view and also selects the appropriate tab in the tab bar.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top