_UIImagePickerControllerUserDidCaptureItem未调用xcode 6 [英] _UIImagePickerControllerUserDidCaptureItem not called xcode 6

查看:156
本文介绍了_UIImagePickerControllerUserDidCaptureItem未调用xcode 6的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

仅仅是我或来自uiimagepickercontroller的_UIImagePickerControllerUserDidCaptureItem通知在iOS 8和XCode 6上停止工作。我用它在用户拍照后旋转相机叠加层。
PLease帮助

Is it just me or _UIImagePickerControllerUserDidCaptureItem notification from uiimagepickercontroller stopped working on iOS 8 and XCode 6. I use it to rotate the camera overlay after the user taked a picture. PLease help

推荐答案

我也看到了与iOS 8相同的问题,但使用了 Amoneron 在他的答案中。

I also see the same issue with iOS 8 but using block works as mentioned by Amoneron in his answer.

以下是在Swift中的操作方法:

Here's how to do it in Swift:

NSNotificationCenter.defaultCenter().addObserverForName("_UIImagePickerControllerUserDidCaptureItem", object:nil, queue:nil, usingBlock: { note in
  // do something here
})

这篇关于_UIImagePickerControllerUserDidCaptureItem未调用xcode 6的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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