My project is in Xcode 4.2, designed for iOS 4.2 and above.
I am not using a Storyboard so in the Summary, both Main Storyboard and Main Interface are blank.
Will this cause problems with my submission to Apple?
I ask because when I set the Main interface to my primary View Controller, I get this error when I compile: this class is not key value coding-compliant for the key mainTableView.'
and I don’t know how to resolve it.
From the ViewController Programming Guide:
“If a main storyboard is declared in this file, then when your app launches, iOS performs the following steps:
It instantiates a window for you.
It loads the main storyboard and instantiates its initial view controller.
It assigns the new view controller to the window’s rootViewController property and then makes the window visible on the screen.”
The key word being “if”. Therefore I don’t think it’s necessary.
I have a universal app that started out as an ios3 app and was updated to universal in the past 6 months – I didn’t declare any storyboard (I’ve not used storyboards at all yet) or Main Interface. I simply add my viewcontroller’s view to the window in applicationDidFinishLaunching.
When you state that you “set the Main interface to my primary View Controller” did you mean you set the view (not the view controller)? Is this a Xib file? A View Controller won’t work, it needs to be a View/Xib.