I have problem with NSURL. I am trying to create NSURL with string
code
NSString *prefix = (@"tel://1234567890 ext. 101");
NSString *dialThis = [NSString stringWithFormat:@"%@", prefix];
NSURL *url = [[NSURL alloc] initWithString:dialThis];
NSLog(@"%@",url);
also tried
NSURL *url = [NSURL URLWithString:dialThis];
but it gives null . what is wrong ?
Thanks..
Best Answer
Your problem is the unescaped spaces in the URL. This, for instance, works:
Edit: As does this..