Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Mockup & CodeGen, iPhone & iPad
($9.99)

Make your own iPhone apps
and run them live!
(free)

Manu
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Game Development

Reply
 
LinkBack Thread Tools Display Modes
Old 06-16-2010, 12:24 AM   #1 (permalink)
Cool Person
 
Join Date: Jun 2010
Location: Minnesota
Posts: 66
Send a message via Skype™ to mitchsamuels
Default Another Rookie question.. Menu

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.
mitchsamuels is offline   Reply With Quote
Old 06-16-2010, 11:02 AM   #2 (permalink)
A Single-Serving Friend
 
Join Date: Mar 2010
Location: Groningen, NL
Posts: 491
Default

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.

Consider saying thanks by buying my app. :]
Robert Paulson is offline   Reply With Quote
Old 06-16-2010, 10:01 PM   #3 (permalink)
Registered Member
 
Mjsdabeast's Avatar
 
Join Date: Oct 2009
Location: Illinois
Age: 16
Posts: 90
Default

Quote:
Originally Posted by Robert Paulson View Post
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.
__________________


Counting Time Now on the appstore - a very addicting strategic time game!!
http://itunes.apple.com/us/app/count...377631631?mt=8
Mjsdabeast is offline   Reply With Quote
Old 06-17-2010, 08:34 PM   #4 (permalink)
Registered Member
 
Join Date: May 2010
Posts: 35
Default

Quick question are you using a game engine? or doing this all on your own using OpenGL?
SynSoft is offline   Reply With Quote
Old 06-17-2010, 10:30 PM   #5 (permalink)
Cool Person
 
Join Date: Jun 2010
Location: Minnesota
Posts: 66
Send a message via Skype™ to mitchsamuels
Default

Quote:
Originally Posted by SynSoft View Post
Quick question are you using a game engine? or doing this all on your own using OpenGL?

OpenGL
mitchsamuels is offline   Reply With Quote
Reply

Bookmarks

Tags
easy, rookie

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 240
24 members and 216 guests
ADY, AragornSG, bookesp, chillyh, dacapo, Dani77, Davey555, Dominus, dre, glenn_sayers, HemiMG, JasonR, karlam963, M.A.S., marshusensei, mer10, nobre84, Oral B, prchn4christ, Raggou, Rudy, spiderguy84, themathminister, viniciusdamone
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,885
Threads: 89,230
Posts: 380,765
Top Poster: BrianSlick (7,129)
Welcome to our newest member, bookesp
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 02:24 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0