简体   繁体   English

如何创建自定义相机快门动画(例如在SocialCam应用中)

[英]How to create a custom camera shutter animation (like in SocialCam app)

I would like to know how can I customize the 'iris' or 'shutter' animation of the iPhone's camera. 我想知道如何自定义iPhone相机的“虹膜”或“快门”动画。 An awesome example of what I am trying to achieve can be found in SocialCam app. 在SocialCam应用程序中可以找到我要实现的出色示例。

When you launch the camera, there's a custom iris effect as shown below: 启动相机时,有一个自定义的光圈效果,如下所示:

Thanks ahead. 谢谢你

I think that you do not customize the shutter, but simply create a new animation. 我认为您不是自定义快门,而只是创建一个新的动画。 You can do that using Core Animation. 您可以使用Core Animation实现。

Using core animation makes it simple to move views around using minimal programming. 使用核心动画可以很方便地走动用最少的编程意见。

Please read: http://developer.apple.com/library/ios/#DOCUMENTATION/Cocoa/Conceptual/CoreAnimation_guide/Introduction/Introduction.html for more information. 请阅读: http : //developer.apple.com/library/ios/#DOCUMENTATION/Cocoa/Conceptual/CoreAnimation_guide/Introduction/Introduction.html了解更多信息。

Try these link , it consist of Project files too. 尝试这些链接,它也包含Project文件。 iPhone Camera Shutter Animation iPhone相机快门动画

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

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