Posted By


rabc on 12/12/09

Tagged


Statistics


Viewed 1037 times
Favorited by 2 user(s)

activityIndicator


/ Published in: Objective C
Save to your folder(s)



Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.