I'm developing iOS Universal App with Swift, using auto layout and support only portrait.
I found UIViewController.viewDidLayoutSubviews
called multiple times. Instead, viewDidLoad
is only called once on starting up MyApp's UIViewController
.
Why is viewDidLayoutSubviews
called multiple times? Will constraints on each UIView
(UIButtons
,UITextFields
, etc..) be performed in order?
Any information will be appreciated.