I have a couple of programmatically generated UIButtons (custom, 200 by 200, white background) where i wanted to put a UIActivityIndicatorView inside. I tried it with the following code:
UIActivityIndicatorView *playlistImageLoader = [[UIActivityIndicatorView alloc] initWithActivityIndicatorStyle:UIActivityIndicatorViewStyleWhite];
playlistImageLoader.center = CGPointMake(100, 100);
playlistImageLoader.hidesWhenStopped = YES;
[playlistImage addSubview:playlistImageLoader];
[mainScrollView addSubview:playlistImage];
[playlistImageLoader startAnimating];
But it doesn't show up? Have any ideas?
thanks!