Skip to content

Instantly share code, notes, and snippets.

@bryanmikaelian
Created May 17, 2011 19:19
Show Gist options
  • Save bryanmikaelian/977165 to your computer and use it in GitHub Desktop.
Save bryanmikaelian/977165 to your computer and use it in GitHub Desktop.
Center UIActivityIndicatorView when UITabBar present
UIActivityIndicatorView *activityIndicator = [[UIActivityIndicatorView alloc] initWithActivityIndicatorStyle:UIActivityIndicatorViewStyleGray];
activityIndicator.center = CGPointMake(160, 191); // Subtract 49 pixels for the height if you have a tab bar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment