I am creating a universal app when I'm showing the simulator (iPhone) navigation bar, but when I run it Simulator (iPad) navigation bar is not being shown. Please tell anyone why this is happening ... I have no information about this .. This is my code.
if (UI_USER_INTERFACE_IDIOM () == UIUserInterfaceIdiomPhone) {ObjNewFeedVC = [[New feeds viewer alloc] initWithNibName: @ "New Feeds View Controller" bundle: zero]; ObjSecondVC = [[Second View Controller alloc] initWithNibName: @ "SecondView Controller" bundle: zero]; } Else {ObjNewFeedVC = [[newfeedsViewController alloc] initWithNibName: @ "New Feeds Viewer Controller_ipad" bundle: zero]; ObjSecondVC = [[Second View Controller alloc] initWithNibName: @ "SecondView Controller_ipad" bundle: zero]; } ObjNavController1 = [[UINavigationController alloc] initWithRootViewController: ObjNewFeedVC]; ObjNavController2 = [[UINavigationController alloc] initWithRootViewController: ObjSecondVC]; TabBarObj = [[UITBbar Controller alloc] init]; TabBarObj.viewControllers = @ [objNavController1, objNavController2]; Self.window.backgroundColor = [UIColor whiteColor]; [Self. Windows Aid Sewiewewe: TabBRobies.]];
Simulator (iPad) does not show navigation bar; ) Then it will show the navigation bar ...
No comments:
Post a Comment