objective c - Core Data malfunctioning -


this strange problem im getting every , then. im parsing json , storing coredata using several entities. save data json , pull show on screen. app works fine when it's launched xcode, always. when open other time iphone sometimes, happens once every 20 times, doesnt show data saved json, beleive problem info saved in coredata corrupted how, dates specifically, can see dates null on screen.

here's how save dates

[event setvalue:[df datefromstring:(nsstring *)[key objectforkey:@"startsaledate"]] forkey:@"datestartsale"]; [event setvalue:[df datefromstring:(nsstring *)[key objectforkey:@"finishsaledate"]] forkey:@"dateendsale"]; 

if relauch app, killing app , launching again, works again. json correct, apparently funky thing after hours being installed in phone. make sense?

thanks.

[update]

i did more testing. difficult bug catch because happens after several hours in background. figure out problem storing nsdates. not rest of data. after time in background fails save nsdate, though json has valid date stores null. , everytime refresh keeps on storing null. if kill , launch app stores correctly date. tried using models happens same thing.

any ideas? im quite lost now.

i had such issue once believe. in case had display mechanism.

--> try reloading data more (or resetting fetched results controller) test this.


Comments

Popular posts from this blog

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -