4 ms·
How do you do animations with autolayout? Isn't it kinda hard compared to frames?
by acmecorps 12y ago
How do you do animations with autolayout? Isn't it kinda hard compared to frames?
- solomone 12y agoIt's actually easier depending on the animation you want to do. You can set an NSLayoutConstraint to an IBOutlet and then change it's constant in an animation block.
- weixiyen 12y agoyou can just set the constraint constant. I'd say it's much easier.
- ggamecrazy 12y agoYou just have to store the constraint in your VC or custom view. You still need to use frames sometimes though. I have found that scrollviews and AutoLayout are arch-nemesises.