У меня есть пользовательский UITableViewCell, такой как:
// Custom.h
@interface CustomQuestionCell : UITableViewCell {
IBOutlet UIWebView *mywebView;
}
-(void) AssignWebView:(NSString *) _text;
// Custom.m
-(void) AssignWebView:(NSString *) _text {
[mywebView loadHTMLString:_text baseURL:nil];
}
Я могу успешно использовать UITableViewCell в UITableView в файле с именем MainViewController.Делегатом UITableViewCell является MainViewController.В MainViewController я вызываю приведенный ниже код для присвоения значения UIWebView.
// cellForRowAtIndexPath
//CustomQuestionCel.xib uses the class Custom defined above.
CustomQuestionCell *cell = (CustomQuestionCell *)[tableView dequeueReusableCellWithIdentifier:MyIdentifier];
if(cell == nil) {
[[NSBundle mainBundle] loadNibNamed:@"CustomQuestionCellView" owner:self options:nil];
cell = tblQuestionCell;
}
[cell AssignWebView:[ListOfQuestions objectAtIndex:indexPath.row]];
return cell;
Мой вопрос:
Я хотел бы отображать индикатор активности в каждой ячейке, пока UIWebView загружает данные.
Как мне это сделать?