title: Open maps with specific address iOS 7
body: <p>I am trying to make my application open the apple maps application and have the address be pulled up. I tried this : </p>
  
  <pre><code>- (IBAction)openInMaps:(id)sender {
      NSString *addressString = @"http://maps.apple.com/?q=1 Infinite Loop, Cupertino, CA";
      NSURL *url = [NSURL URLWithString:addressString];
      [[UIApplication sharedApplication] openURL:url];
  }
  </code></pre>
  
  <p>and this : </p>
  
  <pre><code>- (IBAction)openInMaps:(id)sender {
      NSString *addressString = @"http://maps.apple.com/?q=1_Infinite_Loop,_Cupertino,_CA";
      NSURL *url = [NSURL URLWithString:addressString];
      [[UIApplication sharedApplication] openURL:url];
  }
  </code></pre>
  
  <p>But the button just acts like its hooked to nothing. But this does work : </p>
  
  <pre><code>- (IBAction)openInMaps:(id)sender {
      NSString *addressString = @"http://maps.apple.com/?q=Cupertino,CA";
      NSURL *url = [NSURL URLWithString:addressString];
      [[UIApplication sharedApplication] openURL:url];
  }
  </code></pre>
  
  <p>So, whenever their is a space it doesn't work. How can I open this address?</p>