我正在使用TABBARBARBARBALBARBAL BARGENCE。在单击Tabbarbutton的时间时,它打开了相册。单击...单击“取消”按钮时,我想转到另一个塔巴尔视图...

请帮我做这个...

预先感谢您的考虑和努力...问候,Renuga

有帮助吗?

解决方案

这是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

我认为上面提到的一种方法是您需要的:

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

其他提示

将UitabbarController的SelectedViewController属性设置为要切换到的视图控制器。将新视图控制器分配给此属性更改当前显示的视图,并在选项卡栏中选择适当的选项卡。

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top