Skip to content

Instantly share code, notes, and snippets.

@mikeabdullah
Last active August 29, 2015 14:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mikeabdullah/af8be11f4aa1ac7b6234 to your computer and use it in GitHub Desktop.
Save mikeabdullah/af8be11f4aa1ac7b6234 to your computer and use it in GitHub Desktop.
Parsing a .webloc file
- (NSURL *)URLFromWeblocFileData:(NSData *)data {
NSDictionary *dict = [NSPropertyListSerialization propertyListWithData:data
options:NSPropertyListImmutable
format:NULL
error:NULL];
NSString *urlString = dict[@"URL"];
return [NSURL URLWithString:urlString];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment