Reputation: 108
I would like to use Autolayout in my project
Ideally I would like to have xib where I "pre-arrange" my views approx possition and height and all outlets and actions to the master.
Then I would like in - viewDidLoad addConstraints to all views so they re-arrange
Is this even good solution? How I should proceed set xib to use autolayout ? Should I remove all constraints before I set my own ?
thanks for any suggestions
Upvotes: 1
Views: 402
Reputation: 17860
I would suggest to do the following:
This way you get best parts of both worlds. You get UI for originally setting up all layout and then you can adjust it in run-time.
Upvotes: 2