matthewcheok / POP-MCAnimate

Concise syntax for the Pop animation framework.
MIT License
947 stars 105 forks source link

NSLayoutConstraint example #6

Closed Codeglee closed 10 years ago

Codeglee commented 10 years ago

Can you give us an example of how we could animate a constraint?

Thanks,

matthewcheok commented 10 years ago

Assuming we have a topConstraint property of type NSLayoutConstraint:

self.topConstraint.pop_spring.constant = 200;