Can I change the size of UIActivityIndicator?

Posted by wolverine on Stack Overflow See other posts from Stack Overflow or by wolverine
Published on 2010-04-14T14:20:50Z Indexed on 2010/04/14 14:23 UTC
Read the original article Hit count: 573

Whatever size i give to it while allocation, it shows fixed size only. Is it possible to increase it?

Code:

activityIndicator = [[UIActivityIndicatorView alloc] initWithFrame:
                     CGRectMake(142.00, 212.00, 80.0, 80.0)];
[[self view] addSubview:activityIndicator];
[activityIndicator sizeToFit];
activityIndicator.autoresizingMask = (UIViewAutoresizingFlexibleLeftMargin |
                                      UIViewAutoresizingFlexibleRightMargin |
                                      UIViewAutoresizingFlexibleTopMargin |
                                      UIViewAutoresizingFlexibleBottomMargin);
activityIndicator.hidesWhenStopped = YES;
activityIndicator.activityIndicatorViewStyle = UIActivityIndicatorViewStyleWhiteLarge;

© Stack Overflow or respective owner

Related posts about iphone

Related posts about uiactivityindicatorview