繁体   English   中英

在iPhone中拍摄图像时如何在相机中显示虹膜(有人说快门)?

[英]How to show iris(some says shutter) in Camera while capturing image in iPhone?

我已经在iPhone中实现了相机并拍摄图像并将其保存在PhotoAlbum中。 现在我想要的是当我保存一个图像并使按钮能够拍摄第二张图像时,我希望在两者之间显示虹膜,因此感觉就像iPhone的相机功能一样。 我该怎么做,请提出一些建议。 谢谢

像Stachematic和Zombiematic这样的应用实际上已经摆脱了使用此私有API的局面...

CATransition *animation = [CATransition animation];
[animation setDelegate:self];
[animation setDuration:0.3];
animation.timingFunction = UIViewAnimationCurveEaseInOut;
[animation setType:@"cameraIris"];
[cameraView.layer addAnimation:animation forKey:nil];

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM