是否可以从OS 3.2中的UIImagePickerController中删除“取消”按钮? [英] Can the Cancel button be removed from a UIImagePickerController in OS 3.2?

查看:100
本文介绍了是否可以从OS 3.2中的UIImagePickerController中删除“取消”按钮?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

问题:

这里有一张图片,但链接已经死了。它显示了一个在弹出框内显示的 UIImagePickerController ,作为另一个控制器内部的视图(也就是说,它不是popover的根VC)。它有一个取消按钮。

There was an image here, but the link went dead. It shows a UIImagePickerController shown inside a popover, as a view inside of another controller (that is, it's not the root VC of the popover). It sports a Cancel button.

这个按钮可以在弹出框中被杀死吗?我可以通过动态编辑私人VC的导航项来删除选择联系人时出现的 ABPeoplePicker *控制器中的按钮,但是这个按钮是我的(没有 UINavigationControllerDelegate 方法由 UIIPC 调用。

Can this button be killed in a popover? I can remove the button in the ABPeoplePicker*Controller that appears when picking Contacts by editing the private VC's navigation item on the fly, but this one eludes me (no UINavigationControllerDelegate methods are called by the UIIPC).

推荐答案

我认为您可以将其更改为其他内容(不确定删除),因为 UIImagePickerController 继承 UINavigationController 。然后你就可以得到

I think you can change it to something else (not sure about removing) because UIImagePickerController inherits UINavigationController. Then you can get

UINavigationBar *bar = picker.navigationBar;
[bar setHidden:NO];
bar.navigationItem.rightBarButtonItem = doneButton;

这篇关于是否可以从OS 3.2中的UIImagePickerController中删除“取消”按钮?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆