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

网上看见的一种解决自定义相机时候相机开启动画不一致的方法,用于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];

posted @ 2013-02-22 15:32  白条围巾  阅读(495)  评论(0编辑  收藏  举报