title: NSURLConnection delegate method
body: <p>I am having a hard time to find any examples for NSURLConnection delegate method implementations.</p>
  
  <p>I want to send data with a HTTP post with a button click. Not sure how to make a "submitting" screen and "submitted". (I know how to use spinner and will use them)</p>
  
  <p>I am using this code under a botton click action, but unable to use any delegate stuff. Not sure how to implement them with my current set up.</p>
  
  <pre><code>NSMutableURLRequest *request = 
      [[NSMutableURLRequest alloc] initWithURL:
       [NSURL URLWithString:@"http://myURL.com"]];
  
      [request setHTTPMethod:@"POST"];
  
      NSString *postString = [wait stringByAppendingString:co];
  
      [request setValue:[NSString 
                         stringWithFormat:@"%d", [postString length]] 
     forHTTPHeaderField:@"Content-length"];
  
  
  
      [request setHTTPBody:[postString 
                            dataUsingEncoding:NSUTF8StringEncoding]];
  
      //[[NSURLConnection alloc] initWithRequest:request delegate:self];
      [NSURLConnection sendSynchronousRequest:request returningResponse:nil error:nil];
  
  
      [SVProgressHUD dismissWithSuccess:@"Submission Successful"];
  </code></pre>