Since Xcode 8 and iOS10, views are not sized properly on viewDidLayoutSubviews
问题 It seems that with Xcode 8, on viewDidLoad , all viewcontroller subviews have the same size of 1000x1000. Strange thing, but okay, viewDidLoad has never been the better place to correctly size the views. But viewDidLayoutSubviews is! And on my current project, I try to print the size of a button: - (void)viewDidLayoutSubviews { [super viewDidLayoutSubviews]; NSLog(@\"%@\", self.myButton); } The log shows a size of (1000x1000) for myButton! Then if I log on a button click, for example, the log