Quick question about plist

Can my application download .plist from the URL and replace the one I created in xcode and comes with the application?

Thanks Leo

+3
source share
3 answers

No, you cannot change anything in your application. You must upload the plist file to some folder in the application sandbox (documents or caches) and read it from there.

Your possible workflow for reading this plist might be:

  • Check if the plist file is present at the download location. If so, read it from there.
  • If this is not the case, read the plist that came with your package (or copy the plist file from the package to download and go to step 1 - this way the workflow can be a little more consistent).
+6

NSURLRequest .plist, "" . NSSearchPathsForDocumentsInDomain() (. " " ), "".

+2

Perhaps this is the answer you are looking for. In this lesson, they are downloaded from the Plist website. http://www.youtube.com/watch?annotation_id=annotation_911912&feature=iv&src_vid=3Oy-evy2xD8&v=JJW25dMSEgg

good luck.

0
source

All Articles