Skip to content

Instantly share code, notes, and snippets.

@slaypni
Created June 24, 2013 19:40
Show Gist options
  • Save slaypni/5852881 to your computer and use it in GitHub Desktop.
Save slaypni/5852881 to your computer and use it in GitHub Desktop.
display NSArray / NSDictionary / NSData as plist format
- (void)displayNSDataAsPlist:(NSData*)data
{
NSString *path = [NSTemporaryDirectory() stringByAppendingPathComponent:@"temp.plist"];
[data writeToFile:path atomically:NO];
NSString* str = [NSString stringWithContentsOfFile:path encoding:NSUTF8StringEncoding error:nil];
NSLog(@"%@", str);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment