UIActivityIndicatorView *activityIndicatorView = [[UIActivityIndicatorView alloc] init];
activityIndicatorView.color = [UIColor orangeColor];
[self.view addSubview:activityIndicatorView];
[activityIndicatorView startAnimating];
activityIndicatorView.center = self.view.center;
說明:
利用UIActivityIndicatorView的color property,設定UIActivityIndicatorView物件的顏色
沒有留言:
張貼留言