ios - Changing App Name with plist data files -
i have app uses plist (stored locally) save data. (the app address book app). code use involving plist below:
- (nsstring *)infodatafilename { nserror *err = nil; nsurl *dir = [[nsfilemanager defaultmanager] urlfordirectory:nsdocumentdirectory indomain:nsalldomainsmask appropriateforurl:nil create:yes error:&err]; nsstring *path = [[dir path] stringbyappendingstring:@"/infodata.plist"]; return path; }
however, changed name of app. redownloaded app onto phone, , none of original data showing up. how can make data original plist show in new plist?
thanks much!
when changed app's name, changed bundle id, created entirely new app, independent of old version. changed bundle id used be, , problem solved.
you can view/change bundle id in project overview > general > identity > bundle identifier.
Comments
Post a Comment