title: Show loading screen while doing sendSynchronousRequest using NSURLConnection
body: <p>When a button is pressed, I need to do a log in. While the sendSynchronousRequest is being called I'd like to have a "loading" indicator. I understand that it does not work to add the loading screen right before I make the URL request since the display code is not reached until after the URL request comes back with a result. I tried several things:</p>
  
  <ul>
  <li>Use notifcation center: Add observer and send a message, then start the loading screen. Do the actual request in the selector (which removed the loading view). This didn't seem to work.</li>
  <li>Create a separate thread for the URL request (gave me weird error about using web block in a non-web/non-main thread</li>
  <li>Create a separate thread for the loading view (didn't display anything!)</li>
  </ul>
  
  <p>I'd like to get two responses: 1) what is the quick and dirty (but functional, working with iOS 3.2+) way to do this? 2) what is proper way to do it? :)</p>
  
  <p>Thanks</p>