On an iPhone, in the standard messaging app, the text bubble will keep going up even after it has seemingly met the edge-of-the-screen limit, if you keep pushing it with two fingers.

What is allowing that to happen?

How would I replicate that so my code isn't so "fixed" and just stops exactly at the variable where it's supposed to?

Also, is there a name for the "bouncy" text physics that we see in android and iOS?

有帮助吗?

解决方案 2

Don't make a boundary - make a constraint.

Is it the case that you can't push the bubble 'outside of the screen', or is it more that you can't drag it further than the initial drag point?

其他提示

UIKit Dynamics is the high level name. http://www.doubleencore.com/2013/09/ios-7-uikit-dynamics/

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top