When you create a new ViewController, it comes with xib. The width and height of self.view
printed in viewController.m is 600*600, but the interface display effect, constraint layout and the effect of running on the simulator are normal. ?
In viewDidAppear:
或者viewDidLayoutSubviews
中打印才是正常,因?yàn)樵?code>viewDidLoad:, the view is only loaded and not laid out