NSDictionary -> NSData:
NSData *myData = [NSKeyedArchiver archivedDataWithRootObject:myDictionary];
NSData -> NSDictionary:
NSDictionary *myDictionary = (NSDictionary*) [NSKeyedUnarchiver unarchiveObjectWithData:myData];
More Related Contents:
- How can I sort an NSArray containing NSDictionaries?
- Difference between self.ivar and ivar?
- Detect the specific iPhone/iPod touch model [duplicate]
- Programmatically Request Access to Contacts
- Resize UIImage by keeping Aspect ratio and width
- iOS SDK – Programmatically generate a PDF file
- Storyboard – refer to ViewController in AppDelegate
- What are best practices that you use when writing Objective-C and Cocoa? [closed]
- How to get UITableView from UITableViewCell?
- CAGradientLayer, not resizing nicely, tearing on rotation
- post image to server in iphone
- iOS: Access app-info.plist variables in code
- Enabling crash logs symbolication in Xcode 4.2
- Objective C – get the following day from today (tomorrow)
- How can I locally detect iPhone clock advancement by a user between app runs?
- iOS Pinch Scale and Two Finger Rotate at same time
- Best ways to play simple sound effect in iOS
- What does the Xcode 4.2 preference “Support Wirelessly Connected Devices” do?
- Finding Path/Route Between two points on MapKit in iPhone
- iOS: Keep application running in background
- Disable Dictation button on the keyboard of iPhone 4S / new iPad
- Could not find a storyboard named ‘Main’ in bundle
- Calling method in current view controller from App Delegate in iOS
- Moving status bar in iOS 7
- UICollectionView animations (insert/delete items)
- How to crop the image using UIBezierPath?
- Objective c, Memory management of instance members
- Use NSURLIsExcludedFromBackupKey without crashing on iOS 5.0
- Record audio file and save locally on iPhone
- How to add userInfo to a UIAlertView?