切换捕获模式时是否可以将自定义转换添加到 UIImagePicker 自定义叠加层?

Is it possible to add a custom transition to a UIImagePicker custom overlay when switching capture modes?

我在 iOS 8 应用程序中向 UIImagePickerController 添加了自定义叠加层。但是,当我切换拍摄模式时(当我点击相应的 UIButton 从照片切换到视频,反之亦然)时,会出现一些 "jerky pause".

在标准 UIImagePickerController 中,切换捕获模式时会出现模糊过渡 ,我想实现类似的功能。我对 iOS 8 中的自定义转换和转场有些熟悉,但是在这种情况下,我什至不确定从哪里开始。

试试方法: UIView.transitionFromView(<#fromView: UIView#>,toView:<#UIView#>,持续时间:<#NSTimeInterval#>,选项:<#UIViewAnimationOptions#>,完成:<#((Bool) -> Void) ?##(布尔) -> 无效#>)

从视图:self.view 到您的 uiimagepickercontroller 视图

希望对您有所帮助..