I'm having some issues of figuring out when the auto-contraints setup on a XIB are applied in the view setup process.
For more explanation:
- I've setup a
XIBfor a view - I set the "Simulated Metrics" Size to iPhone 3.5-Inch
- I've added auto-constraints to the subviews inside this view
- In the View Controller I perform certain operations dependent on the subview (
IBOutlet)frames/boundsin theviewDidLoadmethod - In the View I perform certain operations dependent on the subview (
IBOutlet)frames/boundsin theawakeFromNibmethod
In those 2 methods (ViewController::viewDidLoad and View::awakeFromNib) the IBOutlet views HAVE been loaded but the constraints have no yet been applied. The actual frame is still set to the iPhone 3.5" size (width 320) when using a larger simulator (such as the iPhone 6 simulator).
When are these auto-constraints applied and when should any necessary operations that would need the ACTUAL frame/bounds of the subviews take place?
I'm using XCode 6.3, Swift (1.2)