I've nicely setup my UI inside a storyboard controller. Running the app, everything looks & works great inside the iPhone 5S simulator. More importantly, all the UI elements that have their own IBOutlet (for animation purposes) to the code behave as programmed: moving as intended when methods animate these UI elements when needed.
However, I added constraints by clicking the controller inside the storyboard --> Editor --> Resolve Auto Layout Issues --> Add Missing Constraints. After that, animations stop working because the constraints are keeping them in place.
Is there some sort of command/code to "pause/stop/remove/disable" the constraints during animation & then add them back, when animations are finished, without having to do add constraints back manually?
The best way to use Animation and Autolayout together is by creating IBOutlet of the UI Elements(UILabel, UIButton etc.).
You can change their constant value according to your animation requirements.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With