Posted By

rabc on 12/12/09


Tagged

iphone indicator activityindicator activity


Versions (?)

Who likes this?

4 people have marked this snippet as a favorite

davidsi
umang_nine
bobbym245
cnathan


activityIndicator


 / Published in: Objective C
 

  1. UIActivityIndicatorView *activityIndicator = [[UIActivityIndicatorView alloc] initWithActivityIndicatorStyle:UIActivityIndicatorViewStyleGray];
  2. [activityIndicator setCenter:self.tableView.center]; // to center on tableview
  3. activityIndicator.frame = CGRectMake(self.tableView.center.x-10, self.tableView.center.y-40, 30, 30); // to determine the center
  4. [activityIndicator setHidden:FALSE];
  5. [activityIndicator startAnimating];
  6. [self.view addSubview:activityIndicator];
  7. [self.view bringSubviewToFront:activityIndicator];

Report this snippet  

You need to login to post a comment.