I have a tableView and when the user is selecting one of the cells, im loading a big image.
This loading takes like 10 seconds and i'd like to show a small view with a spinning icon.
- (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 the view (loadingView) is never shown. It seems like the call to loadImage prevents it to be displayed. Can i force that view to be displayed??