title: Setting contentInset on UITableView after coming back from different thread
body: <p>How can  I set the content inset on a UITableView after coming back from a separate thread?</p>
  
  <p>Here is some code to get the gist of what I am doing, feel free to provide suggestions outside of the scope of this question as well.</p>
  
  <p>My main goal is to collapse the area that the webview would go into (the area above the table created by the contentInset) if there is no ad available.</p>
  
  <pre><code>//In View did Load
  [NSThread detachNewThreadSelector:@selector(getBannerAdContent) toTarget:self withObject:nil];
  
  
  -(void)getBannerAdContent
  {
      NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
      NSString *html = [NSString stringWithContentsOfURL:[NSURL URLWithString:@"http://192.168.0.18:83/PhotoGalleryService.svc/LoadBannerAd/"]];
      [self performSelectorOnMainThread:@selector(loadBannerAd:) withObject:html waitUntilDone:NO];
      [pool release];
  }
  
  
  -(void)loadBannerAd:(NSString*)html
  {
      UIWebView *webView = [[UIWebView alloc] initWithFrame:CGRectMake(10, 2, 300, 40)];
  
      [webView loadHTMLString:html baseURL:nil];
      webView.delegate = self;
      webView.scalesPageToFit = NO;
      webView.autoresizingMask = (UIViewAutoresizingFlexibleLeftMargin | UIViewAutoresizingFlexibleRightMargin | UIViewAutoresizingFlexibleTopMargin | UIViewAutoresizingFlexibleBottomMargin);
      [self.view addSubview:webView];
      [webView release];
      UITableView *myTableView = (UITableView*)[self.view.subviews objectAtIndex:0 ];
      //The following line is doing nothing.
      myTableView.contentInset = UIEdgeInsetsMake(44,0.0,0,0.0);
  }
  </code></pre>
  
  <p>Any help you can give me would be much appreciated.</p>
  
  <p>EDIT: 
  A little more thorough of an explanation...</p>
  
  <p>In my view did load I spark off a separate thread.  This thread loads the html from a service i set up, and then sets that on the webview.  However, as I'm stepping through, before it gets to the line </p>
  
  <pre><code>myTableView.contentInset = UIEdgeInsetsMake(44,0.0,0,0.0);
  </code></pre>
  
  <p>The table view is already loaded, and then the above line has no effect.</p>
  
  <p>Cheers,</p>