UIActivityIndicatorView
ビューロードの前に を追加する方法。Web サーバーからデータを取得しています。
これが私のコードです
spinner=[[UIActivityIndicatorView alloc]initWithFrame:CGRectMake(225, 115, 30, 30)];
[spinner setBackgroundColor:[UIColor clearColor]];
[spinner setActivityIndicatorViewStyle:UIActivityIndicatorViewStyleGray];
[self.view addSubview:spinner];
[spinner startAnimating];
objCountryPreferences=[[CountryPreferences alloc]init];
objLanguagePreference=[[LanguagePreference alloc]init];
objMobilePrefixParser=[[MobilePrefixParser alloc]init];
//これは異なる Web サービスを呼び出しています
[objMobilePrefixParser getMobilePrefix];
[objLanguagePreference languagePreference];
[objCountryPreferences getCountryIdArr];