I m trying to set size of UIActivityindicatorview
using setframe
. It is able to set position but not size of control. is there some other way??
This is relevant code.
UIActivityIndicatorView* mySpinner = [[UIActivityIndicatorView alloc] initWithActivityIndicatorStyle:UIActivityIndicatorViewStyleWhiteLarge];
mySpinner.frame=CGRectMake((375/2)-25,210 , 100, 100);
mySpinner.color=[UIColor blueColor];
mySpinner.center =self.view.center;
mySpinner.hidesWhenStopped = YES;
[self.view addSubview:mySpinner];