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:27 PM   #1 (permalink)
xiii3
Registered Member
 
Join Date: Jun 2009
Posts: 159
Default Level Up / Down Buttons

Ive been having some trouble creating a set of level skip up/down buttons.

So far all ive got is two buttons and a label with 'Level @%' in it

- (IBAction)levelUpPressid)sender

{
if (levelText = '1')
[levelText = 2];
if (.... and so on
}

works in terms of changing the number in the label from 1 to 2 but a second press doesnt change it from 2 to 3... is there a simpler way or should i just crack on getting this to count upwards using ifs?
xiii3 is offline   Reply With Quote
 

» Advertisements
» Stats
Members: 158,832
Threads: 89,208
Posts: 380,640
Top Poster: BrianSlick (7,129)
Welcome to our newest member, james231smith
Powered by vBadvanced CMPS v3.1.0

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