自定义modalViewController动画
我有一个图像,按下时会在另一个 UIViewController 中呈现该图像的全尺寸视图。现在的问题是,如何使模态视图控制器在呈现时从该图像动画到全屏,就像 Flipboard 的做法一样。有什么想法吗?解雇时也想做同样的事情。
我想这里明智的做法是只向整个视图添加一个子视图,而不是使用 modalViewController。问题是如何对 UIImage 进行动画处理以调整更大/更小大小?
I have an image when pressed presents a full size view of the image in another UIViewController. Now the issue is that how do I make so that the modal view controller when presented animates from this image to full screen, kind of how flipboard does it. Any idea? Also wanted to do the same thing when dismissing.
I guess the smart way to do it here is to just add a subview to the whole view and not use a modalViewController. The question is how do I animate a UIImage to resize larger/smaller?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我的建议是使用较小尺寸的
UIImageView
,然后使用类似于我下面的内容将其动画到较大的框架。My suggestion would be to have a
UIImageView
at your smaller size and then animate it to your larger frame, using something like what I have below.