Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个 UIImagePickerController,用于拍照。左上角有一个闪电按钮。当它被按下时,它会弹出三个选项:自动、开、关。这些按钮指的是闪光模式是自动、开还是关。我想检测何时按下此闪电按钮。我怎样才能做到这一点?
不要认为默认的 UIImagePickerController 可以做到这一点,您可能必须对其进行子类化,并自行处理。
(我个人会避免使用 UIPicker,而是转而使用 AVFoundation 以供相机使用,因为它是触摸受限的,并且它的“允许编辑”部分存在一个相当烦人的错误)。
您也许可以找到一个自定义库来执行此功能,但我不确定什么会解决它。祝你好运。:)
关联