Hi folks,
Quite simply I am creating a game with a Menu screen and 3 "boards" for different difficulties. The idea is that I wanted to add buttons on the Menu screen so that clicking the "Easy Game" would load the "Easy Board".
Now I know I can use a navigation controller and have a user select a difficulty then click some "Begin" button on a nav bar but that isn't the kind of look I was going for.
So I came across presentModalViewController and dismissModalViewController. After watching some tutorials these appear that they will do the trick.
What I want to know if there are any caveats I need to know about and whether or not it is advisable to use for a game? (puzzle)
I'm trying to be mindful of memory management and the like. When I look at apples documentation -
http://developer.apple.com/iphone/library/documentation/UIKit/Reference/UIViewController_Class/Reference/Reference.html#//apple_ref/doc/uid/TP40006926-CH3-SW30
There doesn't seem to be any mention of what happens when the modal view is dismissed. I always nil any objects and release them in the dealloc method of my controller. Does dismissModaViewController call those methods to ensure proper cleanup or does it do it's own cleanup?
I'm sorry if I'm not 100% clear...I'm still trying to wrap my head around certain concepts. I'll be more than happy to clarify any discussion points.
Thanks
Quite simply I am creating a game with a Menu screen and 3 "boards" for different difficulties. The idea is that I wanted to add buttons on the Menu screen so that clicking the "Easy Game" would load the "Easy Board".
Now I know I can use a navigation controller and have a user select a difficulty then click some "Begin" button on a nav bar but that isn't the kind of look I was going for.
So I came across presentModalViewController and dismissModalViewController. After watching some tutorials these appear that they will do the trick.
What I want to know if there are any caveats I need to know about and whether or not it is advisable to use for a game? (puzzle)
I'm trying to be mindful of memory management and the like. When I look at apples documentation -
http://developer.apple.com/iphone/library/documentation/UIKit/Reference/UIViewController_Class/Reference/Reference.html#//apple_ref/doc/uid/TP40006926-CH3-SW30
There doesn't seem to be any mention of what happens when the modal view is dismissed. I always nil any objects and release them in the dealloc method of my controller. Does dismissModaViewController call those methods to ensure proper cleanup or does it do it's own cleanup?
I'm sorry if I'm not 100% clear...I'm still trying to wrap my head around certain concepts. I'll be more than happy to clarify any discussion points.
Thanks