新建ViewController的时候自带xib,viewController.m中打印self.view的宽高是600*600,但界面显示效果和约束布局和运行到模拟器上的效果为什么都是正常的?
In viewDidAppear:或者viewDidLayoutSubviews中打印才是正常,因为在viewDidLoad:, the view is only loaded and not laid out
viewDidAppear:
viewDidLayoutSubviews
viewDidLoad:
In
viewDidAppear:
或者viewDidLayoutSubviews
中打印才是正常,因为在viewDidLoad:
, the view is only loaded and not laid out