tableview will not update on phone

后端 未结 3 1809
忘了有多久
忘了有多久 2021-01-27 01:30

If this is a repost, I apologize, but I have been scouring the net and cant seem to find anything that works. I have a list of workouts that I display in a tableview that are ga

3条回答
  •  囚心锁ツ
    2021-01-27 02:04

    Different behaviour between the simulator and the device is often related to incorrect case being used in filenames - the simulator isn't case sensitive, and the device is. Check that you have the correct case used everywhere you reference the plist file.

    Alternatively, on the simulator you are able to write directly to the application bundle, but on the device this is not possible and you can only write to certain directories in your application's sandbox, typically the documents directory. You would normally copy a plist to the documents directory on first run, and use that file thereafter.

提交回复
热议问题