title: NSURL Error Code 1022
body: <p>I have an RSS reader app, that has a parser. It has worked well, up until iOS 9 beta. Whenever I try to load data, I get error code 1022. Here is my code for establishing a connection:</p>
  
  <pre><code>- (void)parseRssFeed:(NSString *)url withDelegate:(id)aDelegate {
  [self setDelegate:aDelegate];
  
  responseData = [NSMutableData data];
  NSURL *baseURL = [NSURL URLWithString:url];
  
  
  NSURLRequest *request = [NSURLRequest requestWithURL:baseURL];
  
  [[NSURLConnection alloc] initWithRequest:request delegate:self];
  }
  </code></pre>
  
  <p>And the error handler:</p>
  
  <pre><code>- (void)connection:(NSURLConnection *)connection didFailWithError:(NSError *)error
  {
  NSString * errorString = [NSString stringWithFormat:@"Unable to download XML data (Error code %i )", [error code]];
  
  UIAlertView * errorAlert = [[UIAlertView alloc] initWithTitle:@"Error loading content" message:errorString delegate:self cancelButtonTitle:@"OK" otherButtonTitles:nil];
  [errorAlert show];
  }
  </code></pre>
  
  <p>I'm not sure what changed between iOS 8 and 9, but for some reason the app no longer works. Any help would be greatly appreciated!</p>