title: Warning: UIKit should not be called from a secondary thread
body: <p>In my iPhone app I need to connect to a web server as this can take some time I'm using threads like this:</p>
  
  <pre><code>[NSThread detachNewThreadSelector:@selector(sendStuff) toTarget:self withObject:nil];
  
  - (void)sendStuff {
      NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
  
      //Need to get the string from the textField to send to server
      NSString *myString = self.textField.text;
  
      //Do some stuff here, connect to web server etc..
  
      [pool release];
  }
  </code></pre>
  
  <p>On the row where I use self.textField I get a warning in console saying:
  void _WebThreadLockFromAnyThread(bool), 0x5d306b0: Obtaining the web lock from a thread other than the main thread or the web thread. UIKit should not be called from a secondary thread.</p>
  
  <p>How can I use the textField without getting this error?</p>