iphone - Serializing objects in Objective C -


When a user uploads something through my app, then I make an ASIFODRDet object to create POST.

When the user is offline, then I would like to send it later by writing an ASI formatdind object.

Is there an objective serial like this in Objective-C or do I have to write something from scratch?

Yes! It is a very good thing called the NSCoding protocol, how it can be implemented and used, it is available on our local Cocoa site: In essence, you have to implement two methods to define it Do what you want to save and how to restore it, and then it's actually a one-liner for storing your object.


Comments

Popular posts from this blog

c# - How to capture HTTP packet with SharpPcap -

jquery - SimpleModal Confirm fails to submit form -

php - Multiple Select with Explode: only returns the word "Array" -