I am developing a game, I want a menu though.
I have made different Objective-C class files with everything I want on them,
My question is, how would I make a UIButton, when pushed, go from one screen (The Menu) to another, Like the actual game or the highscores table?
I know this is probably something very easy, but thanks in advance.
If you are using a navigation controller, you'll need to use pushViewController:animated:. Alternatively, you can use presentModalViewController:animated:.
Google is your friend.
Hope this helps.
Cheers,
Bob
__________________ We are God’s middle children, according to Tyler Durden, with no special place in history and no special attention.
If you are using a navigation controller, you'll need to use pushViewController:animated:. Alternatively, you can use presentModalViewController:animated:.
Google is your friend.
Hope this helps.
Cheers,
Bob
If you aren't, all you have to do is not setup a UIbutton, but just an action like
-(IBAction)loadmenu {
//menu is the name of your view
self.view = menu;
}
Then you connect that action to the button you want to call it when pressed in interface builder.