gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-03 21:20:26 25 4
gpt4 key购买 nike

我已经在 iPhone 中实现了相机并拍摄图像并将其保存在相册中。现在我想要的是,当我保存一张图像并启用按钮来拍摄第二张图像时,我希望虹膜显示在中间。这样感觉就像 iPhone 的相机功能一样。我该怎么做请给一些建议。谢谢

最佳答案

像 Stachematic 和 Zombiematic 这样的应用程序实际上可以通过使用这个私有(private) API 来逃脱......

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

关于iphone - 在 iPhone 中拍摄图像时,如何在相机中显示虹膜(有人说快门)?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5232132/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com