Im writing an ipad application.
So far what I have is a Delegate and Root view controller which initializes the menu screen that starts the game.
I am not using a nib, so in my main class, i start the application with
UIApplicationMain(argc, argv, nil, @"PictionaryAppDelegate");
In my delegate, I have a applicationDidFinishLaunching method which creates an instance of the viewcontroller. In the viewcontroller, I have a load views method which sets up the menu view with all the buttons etc.
When I run it, it starts, and then automatically goes to the dealloc method of the delegate and ends. can someone please tell me why my menu isnt being loaded.
The entire project is attached
here on media fire
You are doing:
This is a big no no.
loadViewis there to generate theviewif it isnil. So what you are doing here is you try to accessview(which isn’t in place yet as we are inloadView), and this callsloadView, and you get that endless recursion with an exploding stack.