解决自定义相机的打开时动画不一致问题

网上看见的一种解决自定义相机时候相机开启动画不一致的方法,用于CV项目。

cameraOverlayView.view.alpha = 0.0f;

 

// animate the fade in after the shutter opens

[UIViewbeginAnimations:nil context:NULL];

[UIViewsetAnimationDelay:0.85f];

cameraOverlayView.view.alpha = 1.0f;

[UIViewcommitAnimations];

你可能感兴趣的:(ios)