I want to create navigation bar for my table view controller class programmatically would you please help me? I couldn\'t fix it!
Thanks in advance! I\'m really new to i
these three lines
ViewController *vc = [[ViewController alloc]init];// or UITableVC as which VC you have in your file
UINavigationController *navController = [[UINavigationController alloc]initWithRootViewController:vc];
[self.window addSubview:navController.view]; // this is an important line if missed out dont show navController
should be added after
[self.window makeKeyAndVisible];
in appDelegate.m didFinishLaunchingWithOptions method