这是我写在我的项目中的代码。我想显示图像,而不是微调。如何将图像添加到ios objective c中的uiactivityindicator视图?
progress= [[UIActivityIndicatorView alloc] initWithFrame: CGRectMake(125, 50, 30, 30)];
progress.backgroundColor = [UIColor redColor];
progress.activityIndicatorViewStyle = UIActivityIndicatorViewStyleWhiteLarge;
[self.view bringSubviewToFront:progress];
看到这个http://stackoverflow.com/questions/1136050/how-to-add-image-in-uiactivityindicatorview –
http://stackoverflow.com/questions/10171152/how-can-i-change-the -uiactivityindicatorview-to-set-a-custom-image –