问题描述
当您在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:探索iOS 7上的滚动视图
Take a look at WWDC Session 217: Exploring Scroll Views on iOS 7
还有读取使用互联网上的组件,例如
There are also read to use components on the internet, such as THSpringyCollectionView
这篇关于如何复制消息在iOS 7中弹跳气泡的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!