When does the correct frame size of the UIView is calculated when I add my custom UIView by using storyboard?
I can\'t get correct frame size in UIView\'s
Since viewDidLayoutSubviews()
is getting called multiple times, I'd recommend using the viewDidAppear()
delegate.
viewDidLoad()
is called before any frame was set.
viewDidLayoutSubviews()
is called during frame sizing and will be called multiple times with different frame sizes (usually frameZero before a frame is calculated).
viewDidAppear()
All frames are set.