Problem with using a plist


i writing application save favorites list .plist file. without specifying path, think file using application's private documents area. when run app on simulator (version 3.1.3), favorites work expected. however, load image on actual iphone 3gs, favorites appear work, when relaunch app, seems list missing. upon adding logging debug problem, writetofile operation (not shown in code below) returns false/no. there better way explicitly define full path .plist file?

solved
 

where documentation state magically guessing want save in documents folder happens? (hint doesn't doesn't happen).

use documented function path documents folder , nsstring path utilities append filename.
 


Forums iPhone, iPad, and iPod Touch iOS Programming


  • iPhone
  • Mac OS & System Software
  • iPad
  • Apple Watch
  • Notebooks
  • iTunes
  • Apple ID
  • iCloud
  • Desktop Computers
  • Apple Music
  • Professional Applications
  • iPod
  • iWork
  • Apple TV
  • iLife
  • Wireless

Comments