私はMBProgressHUDから私のrssパーサを呼び出し、現時点ではviewdidappearにあり、動作しますが、私はviewdidloadでそれを元に戻しますが、リロードしません。 viewdidloadプロセスは実行されますが、MBProgressHUDは実行されません。ViewDidLoadからのMBProgressHUDコール
- (void)viewDidLoad {
[super viewDidLoad];
self.title = @"Results";
HUD = [[MBProgressHUD alloc] initWithWindow:[UIApplication sharedApplication].keyWindow];
[self.view.window addSubview:HUD];
HUD.delegate = self;
HUD.labelText = @"Loading";
HUD.detailsLabelText = @"updating data";
//Show the HUD while the provided method executes in a new thread
[HUD showWhileExecuting:@selector(loadResults) onTarget:self withObject:nil animated:YES];
}
ありがとう、Tom
ここで、ロードする内容を教えてください。たとえば、ShowWhileExecutingビットを使用して、実行するloadResultsのサブルーチンを教えてください。 – TMB87
showWhileExecutingを追加したものが追加されました。ありがとうございました – TMB87