ブログネタ
iPhone(アイフォン) に参加中!
b061e5ab.PNG図のように、全体を暗くして、真ん中でインジケーターをくるくるさせる方法。
loadingView = [[UIView alloc] initWithFrame:[[self view] bounds]];
[loadingView setBackgroundColor:[UIColor blackColor]];
[loadingView setAlpha:0.5];
UIActivityIndicatorView* indicator = [[UIActivityIndicatorView alloc] initWithActivityIndicatorStyle:UIActivityIndicatorViewStyleWhite];
[[self view] addSubview:loadingView];
[loadingView addSubview:indicator];
[indicator setFrame:CGRectMake ((320/2)-20, (480/2)-20, 40, 40)];
[indicator startAnimating];