title: IOS 5 showing SVProgressHUD when loading feed in separate thread does not work
body: <p>Im developing an IOS 5 app which takes a feed from a url and displays the posts in a tableview. I have a View controller that loads the table cells with the posts in the feed. This all works perfectly.</p>
  
  <p>However, i wanted to use the <code>SVProgressHUD</code> to show whilst the feed is being loaded in a separate thread.</p>
  
  <p>So in my <code>-(void)viewDidLoad</code> method I have the following:</p>
  
  <pre><code>- (void)viewDidLoad
  {
      [super viewDidLoad];
      [SVProgressHUD showInView:self.view status:@"loading.." networkIndicator:YES];
      dispatch_async(kBgQueue, ^{NSData* data = [NSData dataWithContentsOfURL: latestFeedURL];
      [self performSelectorOnMainThread:@selector(fetchedData:) withObject:data waitUntilDone:YES];});
  
      [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(foregroundRefresh:) name:UIApplicationWillEnterForegroundNotification object:nil];
  
      self.pull = [[PullToRefreshView alloc] initWithScrollView:(UIScrollView *) self.feedTableView];
      [self.pull setDelegate:self];
      [self.feedTableView addSubview:self.pull];
  
      self.title = @"Latest";
  }
  
  - (void)fetchedData:(NSData *)responseData {
      //parse out the json data
      NSError* error;
      NSDictionary* json = [NSJSONSerialization JSONObjectWithData:responseData options:kNilOptions error:&amp;error];
  
      NSMutableArray* latestFeed = [json objectForKey:@"posts"]; //2
  
      self.feedUpLoads = latestFeed; 
      NSLog(@"objects: %@", latestFeed); //3
      [self.feedTableView reloadData];
      [SVProgressHUD dismiss];
  }
  </code></pre>
  
  <p>This all works fine, im getting the data which is loaded in a background thread and my table is displaying the posts with all the detail required. The problem I have is that the <code>SVProgressHUD</code> is not showing at all. Even if I put the <code>[SVProgressHUD showInView</code> line in the fetchData method, it's still not showing. (by the way i know the <code>SVProgressHUD</code> code works because I can actually make it show forexample in the <code>viewWillAppear</code> method.</p>
  
  <p>Im guessing that it's not working because at the point when I'm calling it the view does not yet fully exist? But if that's the case where should I call it so that it shows whilst the feed is being called and where should I remove it?</p>
  
  <p>Any help appreciated! thanks in advance!!</p>