It seems like autolayout overrides commands in 'ViewDidLoad'.
Target : I want to define the size of a label programmatically to reflect the importance of my label. I DON'T want the label to fit the size of the text. I don't want neither the text of the label to fit the size of the label.
I code in Swift and Xcode 6.
When I use in 'ViewDidLoad'
team1ScoreLabel.frame.size.width=400
it has no effect.
When I copy and paste it in a button action function, it resizes as I wish the size of the label. So the line of code is OK.
To me, it means autolayout constraints does not allow the label to be resize in 'ViewDidLoad' method. I have tried with no success in 'ViewDidAppear'
Any idea how to resize the label size when the view appears ? I don't want to disable autolayout because I'm using it a lot for other constraints.