像iPad上的iBooks和Photos.app中的文件打开动画 [英] File opening animation like in iBooks and Photos.app on iPad
本文介绍了像iPad上的iBooks和Photos.app中的文件打开动画的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在iBooks.app中打开PDF文件时,其缩略图会扩展到整个屏幕,然后显示PDF页面。
当您在iPad上的Photos.app中打开照片时,其缩略图也会扩展到整个屏幕。然后,您可以在页面之间滑动,缩放等。因此,我想在我的应用程序中实现此动画,但是我不知道该怎么做。
When you open a PDF file in iBooks.app, its thumbnail expands to entire screen, then it shows a PDF page. And when you open a photo in Photos.app on iPad, its thumbnail expands to entire screen too. Then you can swipe between pages, zoom it and so on. So, I would like to implement this animation in my application, but I have no idea how to do it.
您能帮我吗?
推荐答案
您可以使用简单的动画:
You can use a simple animation:
// Begin animation
[UIView beginAnimations:nil context:NULL];
[UIView setAnimationCurve:UIViewAnimationCurveLinear];
[UIView setAnimationDuration:0.5];
// Maximize image size
MyImage.frame = self.view.frame;
// Commit animation
[UIView commitAnimations];
这篇关于像iPad上的iBooks和Photos.app中的文件打开动画的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文