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 02-22-2010, 05:47 PM   #1 (permalink)
Registered Member
 
Join Date: Feb 2010
Posts: 23
Default Change viewDidLoad code with an IBAction?

I'm new with iPhone SDK and am making a game that involves a square chasing a user controlled square. To make the square that the user does not control move faster involves a small change to the code in the viewDidLoad part of my View Controller .m file. How can i do this an IBAction?
ryan45419 is offline   Reply With Quote
Old 02-22-2010, 09:54 PM   #2 (permalink)
Super Moderator
 
Join Date: Oct 2009
Location: San Diego, CA
Posts: 1,578
Default

viewDidLoad is called before the user has a chance to interact with any UI. You'll have to put the code elsewhere.
JasonR is online now   Reply With Quote
Old 02-23-2010, 04:57 PM   #3 (permalink)
Registered Member
 
Join Date: Feb 2010
Posts: 23
Default

Quote:
Originally Posted by JasonR View Post
viewDidLoad is called before the user has a chance to interact with any UI. You'll have to put the code elsewhere.
Ok thank you!
ryan45419 is offline   Reply With Quote
Reply

Bookmarks

Tags
game, ibaction, iphone, sdk

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: 258
23 members and 235 guests
ADY, AragornSG, bookesp, chillyh, dacapo, Dani77, Davey555, Desert Diva, Dominus, glenn_sayers, HemiMG, JasonR, LEARN2MAKE, M.A.S., marshusensei, mer10, nobre84, Oral B, prchn4christ, Raggou, Rudy, spiderguy84, themathminister
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:29 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0