iPhone (iOS): copying files from main bundle to documents folder error

后端 未结 2 881
面向向阳花
面向向阳花 2020-12-09 00:03

I am trying to copy some files across from my app bundle to the documents directory on first launch. I have the checks in place for first launch, but they\'re not included i

2条回答
  •  孤街浪徒
    2020-12-09 00:38

    a note:
    don't issue lengthy operation in didFinishLaunchingWithOptions: is a conceptual mistake. If this copy takes too much time, watchdog will kill you. launch it in a secondary thread or NSOperation... I personally use a timer proc.

提交回复
热议问题