简体   繁体   English

如何像iPhone的照片应用程序一样实现删除动画

[英]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.

相关问题 动画,就像从iPhone照片库中删除一样 - Animation, like when you delete from iPhone Photo Gallery 如何在 iPhone 应用中实现照片效果? - How to implement photo effects in iPhone app? Apple iPad / iPhone照片应用程序-删除照片动画 - Apple iPad/iPhone photos app - delete photo animation 如何使用iPhone SDK实现像Photo应用程序的可滑动图像堆栈? - How do you implement swipe-able image stacks like the Photo app using the iPhone SDK? 如何在我的应用程序中实现“选择现有照片”,如默认的iPhone电话簿? - how do I implement “Choose Existing Photo” in my app like in default iphone phonebook? 如何实现从iPhone照片库删除功能? - how to implement delete functionality from the iphone photo library? 使用UIImageView制作类似iPhone的Photo Galerry的应用 - Using UIImageView to make a app like iPhone's Photo Galerry 如何在iPhone应用程序中一起上传照片和照片说明? - How to upload photo and photo's description TOGETHER in iphone app? 像iPhone默认邮件应用一样实现动画撰写邮件 - Implement animation like iPhone default mail app compose mail 如何像原始的iPhone google map应用一样实现折叠动画视图? - how to implement the foldout animation view like the original iPhone google map app?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM