我正在一個應用程序中使用tableview。我想實現一個加載屏幕,使用MBProgressHUD,以便在數據從互聯網上讀取之前顯示。然而,使用下面的代碼未顯示的數據的:MBProgresshud與tableview
- (void)viewDidLoad
{
HUD = [[MBProgressHUDalloc] initWithView:self.view];
[self.viewaddSubview:HUD];
HUD.delegate = self;
[HUD showWhileExecuting:@selector(load_data) onTarget:self withObject:nil animated:YES];
}
的數據可以在tableview中使用函數load_data單獨(即[個體經營load_data]使用時顯示,但無法與HUD