如何在 iOS 7 中复制消息弹跳气泡 [英] How to replicate Messages bouncing bubbles in iOS 7

查看:17
本文介绍了如何在 iOS 7 中复制消息弹跳气泡的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当您在 iOS 7 的消息"应用程序中进行对话时,如果向上或向下滚动,您会注意到气泡和更多消息发送时间的文本会弹回原位.

When you are in a conversation within the Messages app in iOS 7, if you scroll up or down you will notice that the bubbles and more so the text saying when the messages were sent, will bounce into place.

我正在尝试在我自己的表视图中复制它,但没有找到方法.

I am trying to replicate this in my own table view, but am not finding a way to do it.

我假设它正在使用 UIDynamics,但我不确定如何将其与滚动和内容弹跳结合起来.

I assume it is using UIDynamics, but I am not sure how to tie that in with the scrolling and the content bouncing.

任何帮助将不胜感激

推荐答案

如果你想自己复制那个效果,你需要 UIKit Dynamics.我自己对这种效果很感兴趣,今年在 WWDC 上对此进行了解释.

If you want to replicate that effect yourself, you need UIKit Dynamics. I was interested in that effect myself and it was explained at WWDC this year.

看看 WWDC Session 217:Exploring Scroll Views on iOS 7

Take a look at WWDC Session 217: Exploring Scroll Views on iOS 7

网上也有read to use components,比如THSpringyCollectionView

There are also read to use components on the internet, such as THSpringyCollectionView

这篇关于如何在 iOS 7 中复制消息弹跳气泡的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆