Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

How do you do animations with autolayout? Isn't it kinda hard compared to frames?


It'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.


You 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.


you can just set the constraint constant. I'd say it's much easier.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: