Hello,
i hope you can help me. My application is an iphone version of an existing .NET/MSSQL website. It retrieves the data from a php page (generating a page in plist format). the plist file generated is about 200k for 200 rows. it's working great but the big problem is that it takes 10 seconds to load the data into the dictionary...and the file will get a lot larger in real app.
I previously tried with no success to:
- download and parse an XML file, which was even longer
- first download the plist file in the bundle and then get the data from the local file into the dict. too long also.
- I thought maybe the php page was taking too long to generate the plist file dynamically so I tried with a static file on the webserver, but it does not help.
- (void)applicationDidFinishLaunching

UIApplication *)application {
NSURL *url = [[NSURL alloc] initWithString:@"http://mywebsite/productsPlist.php"];
NSDictionary *tempDict = [[NSDictionary alloc] initWithContentsOfURL:url];
self.data = tempDict;
[tempDict release];
[window addSubview:[navigationController view]];
[window makeKeyAndVisible];
}
I've seen apps downloading larger data from network in less time, and I can't figure out how they do that. If you have any idea I would appreciate.
Thanks...