I have a tableView, and when the user selects one of the cells, im loads a large image.
This download takes 10 seconds and I would like to show a small image with an arrow.
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
loadingView = [[LoadingHUDView alloc] initWithTitle: NSLocalizedString(@"Loading image",@"")];
[self.view addSubview:loadingView];
[loadingView startAnimating];
loadingView.center = CGPointMake(self.view.bounds.size.width/2, 150);
[imageView loadImage: path];
[loadingView removeFromSuperview];
}
The problem is that the view (loadView) is never displayed. It seems that calling loadImage prevents it from being displayed. Can I make this view appear?
Jorge source
share