Search code examples
iphonexcodeios4

iPhone app crashes when I change "Main Interface"


I have a navigation based iPhone app, and I want to load a view (MainMenu.xib) when the app is launched, instead of MainWindow.xib. If I change the target's "Main Interface", the app crashes when it is launched. How do I fix this?


Solution

  • You have to add the view you want to display on MainWindow.xib......in the IB of MainWindow.xib you have to change the name of the class as well as the nib name (give the name of the class)

    After doing this make the object of the view in the Application delegate

    In navigation based you also need to give the name of the class you want to display(this class is the class in which you had designed your table view)