View is null in viewDidLoad
问题 I created UITabBarController with each tab contain UINavigationController and set rootviewcontroller in this UINavigationController , all of this is done in interface builder. In viewDidLoad I try to get frame size from view, but when I reference view it return null. Have anyone experienced this before. All IBoutlet are properly connected. 回答1: viewDidLoad returning a nil view if the view is connected in your .xib could mean: For programmatic initialisation (custom controllers): You forgot to