I am trying to make a URL with a string using the following code
NSString *urlStr = [NSString stringWithFormat:@"http://demo.com"];
NSURL *url = [NSURL urlWithString:urlStr];
But the URL is always coming up nil. When I print description of the URL, I get:
Printing description of url:(NSURL *) url = 0xbfffdb78 (not an Objective-C object)
Can anyone help me and what am I missing?