Created
June 24, 2013 19:40
-
-
Save slaypni/5852881 to your computer and use it in GitHub Desktop.
display NSArray / NSDictionary / NSData as plist format
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (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