How to detect if it is a Web URL or a path?
in NSUrl Apple reference page has written, it accept a URL if it is based on standard, but any kind of string it accept as a URL, like this code:
This is not a web URL but it hold it and also return it as its value.
My concern is detecting URLs among other paths!
in NSUrl Apple reference page has written, it accept a URL if it is based on standard, but any kind of string it accept as a URL, like this code:
Code:
NSURL *url=[NSURL URLWithString:@"/book.xml"];
NSLog(@"%@",url);
This is not a web URL but it hold it and also return it as its value.
My concern is detecting URLs among other paths!