UIDynamicAnimator 动力

2018-07-12  本文已影响4人  CYC666

UIAttachmentBehavior 吸附

    anchorPoint 锚点

    length 元素和锚点之间的距离

    frequency 振动频率 


UICollisionBehavior 碰撞

    translatesReferenceBoundsIntoBoundary 是否以当前视图为界限

UIGravityBehavior 重力

    gravityDirection 重力方向(二位矢量)

    angle 重力方向(角度)

    magnitude 量级

UIPushBehavior 推动

    magnitude 量级

UISnapBehavior 捕抓

上一篇 下一篇

猜你喜欢

热点阅读