How to download plist from server and store locally forever?
I have a simple plist on my server that I want to download to the app's sandbox every time the view is loaded and replace the older one if it exists. After some research I got this code:
[[NSDatadataWithContentsOfURL:@"http://<yourfile>.plist"] writeToFile:@"pathforthefile.plist"atomically:YES];
The problem with this code is xcode says Incompatible pointer types sending 'NSString *' to parameter of type 'NSUrl *'. Is this code even right in the first place? If it is, how can I fix it so it works? (I changed the urls and file name so that's not the error.)