Keypath not found in entity

后端 未结 2 1578
后悔当初
后悔当初 2020-12-16 16:06

I want to show a formatted date in the section header of a table view..

I used the following code.but its throwing an exception *** Terminating app due to unca

2条回答
  •  太阳男子
    2020-12-16 16:43

    The title of your question indicates that "dateSectionIdentifier" is a transient property.

    You cannot use a transient property in a sort descriptor (or in a predicate) of a Core Data fetch request if SQLite is used as store type. That is a documented restriction, only persistent properties can be used.

    See Persistent Store Types and Behaviors in the "Core Data Programming Guide" for more information.

提交回复
热议问题