[英]Have subviews using UIGravityBehavior have different gravity
I've got a viewController with a set of subviews. 我有一个带有一组子视图的viewController。 Currently, the gravity is the same for all of them.
目前,所有这些引力都相同。 I want to be able to set different gravity direction values for each subview.
我希望能够为每个子视图设置不同的重力方向值。 Could someone show me how to do this?
有人可以告诉我该怎么做吗?
Thanks in advance 提前致谢
EDIT: Currently getting this output in the console "Multiple gravity behavior per animator is undefined and may assert in the future" 编辑:当前在控制台中获得此输出“每个动画师的多重重力行为是未定义的,将来可能会断言”
创建了一个UIDynamicAnimator和UIGravityBehavior对象数组,现在可以正常工作
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.