Core Data not saving NSString

后端 未结 2 1717
时光取名叫无心
时光取名叫无心 2021-01-26 16:14

Currently seeing an issue in my Core Data saving. For some reason a NSString isn\'t being saved properly, always returning 0 regardless. Below is my current code.



        
2条回答
  •  深忆病人
    2021-01-26 16:29

    Are you really sure "note updated" in the dictionary is not an NSDate instead of an NSString? The log output makes it look an AWFUL lot like you have an NSDate in there.

    You would need to use an NSDateFormatter to save it into an NSString object property if so.

提交回复
热议问题