This may sound a newbie question, however I’m new iOS dev.
I’m calling following in viewDidLoad
CGFloat tabBarHeight = self.tabBarController.tabBar.frame.size.height;
CGFloat navigationBarHegith = self.navigationController.navigationBar.bounds.size.height;
The return values are 0 for both, why this is so ? Doesn’t it mean that navigationBar and tabBar are already loaded into memory and initialized.
viewDidLoaddoesn’t guarantee that user interface objects have been instantiated – they’re zero because they probably don’t exist. TryviewWillAppear.