Top "Nsurl" questions

NSURL is a class from Foundation.

How to URL encode a NSString

I am trying to url encode a string, but the NSURLConnection is failing because of a 'bad url'. Here is …

encoding nsstring nsurl
How to use special character in NSURL?

My application is using an NSURL like this: var url = NSURL(string: "http://www.geonames.org/search.html?q=Aï…

swift nsurl nsurlsession
Removing url fragment from NSURL

I'm writing a Cocoa application, which uses NSURLs -- I need to remove the fragment portion of the URL (the #…

cocoa nsurl
NSURL URLWithString:myString returns Nil?

I have a string of my url.. I want to get data from that url. For that I needs to …

iphone objective-c nsurl
Remove last portion of the NSURL: iOS

I am trying to remove just the last part of the url, Its a FTP URL. Suppose, I have a …

iphone ios6 ftp nsstring nsurl
Cannot load a NSURL with spaces or hashtags in iPhone app

Twitter has a nice feature that allows you to preload status messages using the following format: http://twitter.com/?status=@…

iphone escaping space nsurl
NSURL baseURL returns nil. Any other way to get the actual base URL

I think I don't understand the concept of "baseURL". This: NSLog(@"BASE URL: %@ %@", [NSURL URLWithString:@"http://www.google.es"], [[NSURL …

objective-c nsurl
Created NSURL is null

NSURL printing null. What's the reason? NSString *webStr = [[NSString alloc] initWithFormat:@"%@",[webArray objectAtIndex:1]]; NSLog(@"urlString = %@",webStr); // its printing correct url …

iphone nsurl
NSURL add parameters to fileURLWithPath method

I use this line of code to load a local html file into a web view: NSURL *url = [NSURL fileURLWithPath:[[…

iphone ios parameters append nsurl
NSURL returns Nil Value

Here Below is my code NSString *string = [NSString stringWithFormat:@" http://abc.com /Demo/View.php?drinkId=%@&name=%@&comment=%@&…

objective-c nsurl