iOS: (Tips) Creating MainWindow.xib in Xcode 4.2
There is always a new thing to discover when it comes to updating one’s Xcode. So today I decided to create a new project based on Tab Bar Navigation to fool around and to my amazement, where is the ever important MainWindow.xib?
So I gave a read on Google and found out that MainWindow is not generated on the templates and instead the view controllers and its related component are generated programmatically in the AppDelegate.
Luckily, I found this wonderful blogpost!
Recreating MainWindow in project
Tested and worked like a charm, but as the above walkthrough makes use of an empty application template, do not forget to add the newly added view controller in the MainWindow as root at the didFinishLaunchingWithOptions.
self.window.rootViewController = self.[your new view controller here];
- postitcode posted this