iPhone 中相册取消按钮的动作事件
我正在使用 tabBarBased 应用程序。单击 tabBarButton 之一时,它会打开相册。在相册中,顶部(导航栏)右侧有一个取消按钮?这里我想执行取消按钮的操作事件单击...在单击取消按钮时我想转到另一个 tabBar 视图...
请帮助我做到这一点...
提前感谢您的考虑和努力... 问候, 雷努加
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
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这是 UIImagePickerControllerDelegate 的类定义:
我认为上面提到的方法之一就是您所需要的:
Here's the class definition for UIImagePickerControllerDelegate:
I think one of the methods mentioned above is what you need:
将 UITabBarController 的 selectedViewController 属性设置为要切换到的视图控制器。向此属性分配新的视图控制器会更改当前显示的视图,并在选项卡栏中选择适当的选项卡。
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.