category that adds method to split query and fragment strings from URLs
Objective-C C
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
LICENSE
NSString+JCURLUtilities.h
NSString+JCURLUtilities.m
README.markdown

README.markdown

NSString+JCURLUtilities

This category adds an additional instance method -queryStringDictionary to NSString.

// Example:
NSURL *url = [NSURL URLWithString:@"http://intridea.com/?foo=bar#baz=garply"];
[[url fragment] queryStringDictionary];  # { 'foo' = 'bar'; }
[[url query] queryStringDictionary];  # { 'baz' = 'garply'; }