Quote:
Originally Posted by chandr
hi i there anyone know how to save a form fields such as name,address,phone
as a binary data and retrieve the value in ipad.
|
For simple things like name and address, phone number, use NSUserDefaults. It has a method setString:forKey: that lets you save strings with different keys. There's also setObject:forKey: which will save a variety of different types of objects (NSString, NSData, NSDate, NSNumber, NSArray, or NSDictionary objects).
Failing that, you can use an NSKeyedArchiver to turn objects that conform to the NSCoding protocol into NSData, and then save the data to a file.