viewWillLayoutSubView
当viewController的bounds又改变,调用这个方法来实现subview的位置。可重写这个方法来实现父视图变化subview跟着变化。
> Lifecycle events order
- - (void)loadView
- - (void)viewDidLoad
- - (void)viewWillAppear
- - (void)viewWillLayoutSubviews
- - (void)viewDidLayoutSubviews
- - (void)viewDidAppear