Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
-URLByDeletingLastPathComponent example
- (NSURL *)removeLastPathComponent:(NSString *)urlString;
{
NSURL *url = [NSURL URLWithString:urlString];
return [url URLByDeletingLastPathComponent];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment