Q:

Set the frame of UIActivityIndicatorView

I have problem with Activity Indicator…
if i am set the frame of Indicator is show the black background behind UIActivity indicator. and if i not set frame its look well but not in proper position. now how can i set Indicator to proper position?

A:

Its work well with this code..
activityIndicator=[[UIActivityIndicatorView alloc]initWithActivityIndicatorStyle:UIActivityIndicatorViewStyleWhite];

[activityIndicator setCenter:CGPointMake(w/2-5,w/2-5)];

[activityIndicator setContentMode:UIViewContentModeCenter];

[activityIndicator startAnimating];
[self addSubview:activityIndicator];

