Hi,
Could someone share any insight they might have on this? I have Auto Layout and Size Classes enabled in my Story Board but I do not have any constaints defined. Instead I am using the Story Board dimensions as reference to then proportionally set the frames according to the device screen size.
In viewDidLayoutSubviews, I call a function that iterates through all the SubViews of the Main View of the View Controller and they set the frames of each accordingly. This has worked wonders so far, until I attached a label to one of the subviews. Even if modify the frame of the label, it somehow gets reset to the Story Board coordinates somewhere does the road.
So, the hierarchy is like this:
View Controller -> View -> View (sizes correctly in viewDidLayoutSubviews)
View Controller -> View -> ImageView (sizes correctly in viewDidLayoutSubviews)
View Controller -> View -> View-> Label (frame gets reset to story board coordinates after being set in viewDidLayoutSubviews)
If anyone can offer some help, it would be much appreciated!
Thanks,
Fardin.