I have created a UITabBarController and adding to a UIViewController subview.
My code is implemented programmatically. The UITabBar is showed up 20pixels down the view.UITabBarController *tabCtrl_obj = [[UITabBarController alloc]init];
[self.view addSu开发者_如何学JAVAbview:tabCtrl_obj.view];
How should i solve it?
It's the status bar that's doing it. Sometimes if you add a view directly to the window it can behave oddly - generally it means you have to define more elements of the view yourself. Try reducing the size of your view by 20 pixels (probably to 460) and then removing the simulated status bar in interface builder. How much are you doing programmatically?
精彩评论