Subscribe ( )

iPhone Programming Tutorials


 

Forum

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 9

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*******”); } } }

Search 

About the iCodeBlog forum

Most Users Ever Online:

44


Currently Online:

5 Guests

Forum Stats:

Groups: 2

Forums: 6

Topics: 419

Posts: 893

Membership:

There are 934 Members

There has been 1 Guest

There are 2 Admins

There is 1 Moderator

Top Posters:

bobcubsfan – 54

crazyiez – 30

Uhu – 17

AdeC – 17

Nick – 15

jitesh61 – 12

Administrators: Brandon (88 Posts), Collin (0 Posts)

Moderators: VertigoSol (26 Posts)



©   

  • Posted by on 6 Aug 2008 in Uncategorized
  •   |  
  •   |  
  •   |  
  • Comments Off

Comments are closed.