我有一个 uitableview 从互联网加载数据,在此期间我显示 MBProgressHUD。但问题是用户在表格加载之前无法触摸任何内容,包括上一页按钮。这是我在两个不同类中的代码:
//PROBLEM METHOD 1
- (void)viewDidLoad
{
[super viewDidLoad];
[tableEtkinlikler reloadData];
MBProgressHUD *HUD = [MBProgressHUD showHUDAddedTo:self.view animated:YES];
HUD.labelText = @"Açılıyor...";
HUD.userInteractionEnabled = NO;
[self performSelector:@selector(loadEtkinliklerTitlesAndImages) withObject:nil afterDelay:0];
tableEtkinlikler.dataSource = self;
tableEtkinlikler.delegate = self;
}
我的按钮也有同样的问题..在它我从互联网加载数据..
//PROBLEM METHOD 2
- (IBAction)AktivitelerButtonClicked:(UIButton *)sender
{
MBProgressHUD *HUD = [MBProgressHUD showHUDAddedTo:self.view animated:YES];
HUD.labelText = @"Açılıyor...";
HUD.userInteractionEnabled = NO;
[self performSelector:@selector(openAktivitelerWindow) withObject:nil afterDelay:0];
}