суббота, 25 января 2014 г.

UIViewController for dummies

UIViewControllers became harder to understand with Storyboards - there are lots of auto-layouts you might not handle.

Just a liitle hint to help debugging:

UIViewController's method invoke sequence is as below
  • awakeFromNib
  • viewDidLoad
  • viewWillAppear
  • viewWillLayoutSubviews
  • viewDidLayoutSubviews
  • viewDidAppear
  • viewWillLayoutSubviews
  • viewDidLayoutSubviews
So, if you have views building by code, make sure that storyboard layout will not break it into mess.

Комментариев нет:

Отправить комментарий