[英]How to implement delete animation like iPhone's photo app
I have a button of UIBarButtonSystemItemTrash on my Navigation Bar, I want to implement a animation when I clicked that button, with trash open and view flies into the trash. 我的导航栏上有一个UIBarButtonSystemItemTrash按钮,当我单击该按钮时,我想实现一个动画,打开垃圾桶并查看飞向垃圾桶的视图。 Just like iPhone's Photo or Mail app.
就像iPhone的照片或邮件应用程序一样。
I realize there's such a question been asked on Jan 9 '09. 我知道在2009年1月9日有人问过这样的问题 。 But that one was answered by a private API.
但这是由私有API回答的。 As I'm targeting App Store, it's there any safe way to make such animation after years?
当我定位到App Store时,有没有安全的方法可以在几年后制作这样的动画?
The animation you are searching for is called Genie Effect and it does includes a Private API and hence der's no such way direct way to use it... 您要搜索的动画称为Genie Effect,它确实包含一个Private API,因此der并不是直接使用它的方式...
but may be u can create your own by using key frame Animation. 但也许您可以使用关键帧动画创建自己的动画。 :)
:)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.