tags:

views:

23

answers:

1

Hi Guys

I loaded XML data (including images, text,...) from server and display that data on iphone screen.

How can i cache data to re-load that screen when i visit that screen other time. It will be faster . (dont need re-load XML data again)?

Thank you.

A: 

you can store XML file itself to documents folder (or some subfolder) after downloading the data from server. If you have parsed XML file into arrays and dictionaries, you can convert data to plist file and store that on your iphone itself. Look at the NSData method:

- (BOOL) writeToFile: (NSString*)path  atomically: (BOOL)useAuxiliaryFile;
Satyam svv