title: UIApplication not launching to make phone call
body: <p>I have this code:</p>
  
  <pre><code>NSString *telURL = [NSString stringWithFormat:@"tel:1-%@",((UIButton*) sender).titleLabel.text];
  telURL = [telURL stringByReplacingOccurrencesOfString:@"\n" withString:@""];
  [[UIApplication sharedApplication] openURL:[NSURL URLWithString:telURL]];
  </code></pre>
  
  <p>But it does not launch the dialer application to make a phone call.</p>
  
  <p>I've checked the string telURL and its contents are : "tel:[REDACTED]", which to my understanding is what it needs to be.</p>
  
  <p>Any ideas?</p>
  
  <p>EDIT:
  In the event that it matters I've just been running this on the simulator. I won't have a physical device for a few days. (And from the answers  below apparently it does matter) </p>