【问题标题】:when allowsEditing is turned on, is there a way to detect the push of the shutter/capture button?打开allowEditing时,有没有办法检测快门/捕获按钮的按下?
【发布时间】:2012-04-20 08:38:54
【问题描述】:

对于 UIImagePickerController,如果打开了 allowedEditing 标志,则在拍摄照片后视图将移动到 Move and Scale 视图。我的问题是,有没有办法在“移动和缩放”视图出现之前检测按下快门/捕捉按钮然后做某事。调查后没有 UIImagePickerController 委托可用。

【问题讨论】:

    标签: iphone uiimagepickercontroller


    【解决方案1】:

    从技术上讲,如果您设置自己的叠加层,则可以在拍摄照片时执行操作,以便您可以使用自己的按钮执行操作并从 uiimagepickercontroller 调用拍照方法。

    除此之外,您还必须使用 avfoundation。

    【讨论】:

    • 我认为这基本上是一个如何检测屏幕上按钮触摸的问题。我仍然想尝试那个方向,而不是寻找覆盖解决方案。我会稍微研究一下avfoundation。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-05-14
    • 1970-01-01
    • 2019-11-19
    • 2020-02-18
    • 2015-10-07
    相关资源
    最近更新 更多