简体   繁体   English

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

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

I have implemented camera in iPhone and taking images and save it in PhotoAlbum. 我已经在iPhone中实现了相机并拍摄图像并将其保存在PhotoAlbum中。 Now what i want is when i save one image and make button enable for taking second image i want iris to be shown in between.So that it feels excatly like Camera functionality of iPhone. 现在我想要的是当我保存一个图像并使按钮能够拍摄第二张图像时,我希望在两者之间显示虹膜,因此感觉就像iPhone的相机功能一样。 How i do that please give some suggestion. 我该怎么做,请提出一些建议。 Thanks 谢谢

Apps like Stachematic and Zombiematic actually got away with using this private API ... 像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