Subscribe ( )

iPhone Programming Tutorials

 

Forum

If you're new here, you may want to subscribe to my RSS feed. Thanks for visiting!

You must be logged in to post Login Register

Search 

how to handle multiple UIProgressBar

User Post

5:07 am
April 1, 2009


antilantil

iCoder

posts 8

1

 Hi,

I am facing problem in handling multiple UIprogressBar at same time . actual i am developing a game in which there is bricks on board 15×8 size. i want to show progressBar at every position where the a ball break the brick and then after finishing the progressingBar the brick block will generate automatically.Plz help me i am using two array i delegate , one for storing bricks blocks and another for storing progressBar each of capacity 120.

my code is

myProgressView = [appDelegate.progressBarArray objectAtIndex:newProgressIndex]; amt = 0.0;

[self.view addSubview: myProgressView];

NSTimer *timer;// =[NSTimer alloc];

timer =[NSTimer scheduledTimerWithTimeInterval: 0.1 target: self selector: @selector(handleTimer:) userInfo: nil repeats: YES];

- (void) handleTimer:(NSTimer *)timer

{ //NSLog(@” timer started*******”);

if(amt <= 1.0)

{ [[appDelegate.progressBarArray objectAtIndex:newProgressIndex] setProgress:amt]; amt += 0.01; }

else if(amt>1.0)

{ [timer invalidate]; //NSLog(@” timer invalidated*******”); } } }


About the iCodeBlog forum

Currently Online:

3 Guests

Maximum Online: 25

Forums:

Groups: 2

Forums: 6

Topics: 300

Posts: 738

Members:

There are 639 members

There are 1 guests


Brandon has made 87 posts

Top Posters:

bobcubsfan - 53

crazyiez - 30

VertigoSol - 26

AdeC - 17

Uhu - 17

Administrator: Brandon | Moderators: VertigoSol


© - Version 3.1.4 (Build 357)