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

View Single Post
Old 07-03-2009, 02:56 PM   #4 (permalink)
Kalimba
Pro. Game Developer
iPhone Dev SDK Supporter
 
Join Date: Feb 2009
Location: żLa Islas Hermosas?
Posts: 2,178
Default

Quote:
Originally Posted by garyk View Post
Code:
level++;
levelText.text = [NSString stringWithFormat:@"%i", level];
Quote:
Originally Posted by xiii3 View Post
so....

- (IBAction)levelUpPress id )sender

{
level++;
levelText.text = [NSString stringWithFormat:@"%i"];

}
doesnt build...

what is the level++ part? ive never come across it... \

basically right now all i need is to have a button that adds 1 to the value of a label and i was thinking of using the labels value to set the rest of the variables up....
Compare the code originally posted with what you've currently got. Also, if you don't know what "++" does, you should locate a C language reference manual and keep it handy.
__________________
~~ Word Flurry ~~ App Store / Website / Facebook
Kalimba is offline   Reply With Quote
 

» Advertisements
» Stats
Members: 158,800
Threads: 89,205
Posts: 380,608
Top Poster: BrianSlick (7,129)
Welcome to our newest member, michealteddyus
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 01:01 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.