Core data setReturnsDistinctResult not working

后端 未结 1 1407
梦谈多话
梦谈多话 2020-12-19 19:04

So i\'m building a small application, it uses core data database of ~25mb size with 4 entities. It\'s for bus timetables.

In one table named \"Stop\" there are ~130

相关标签:
1条回答
  • 2020-12-19 19:18

    This may be late for you, but may help others.

    I had the same problem. What I found is that, if persistant store type is NSSQLiteStoreType the returnDistinctResults works. But for NSXMLStoreType distinct values are not working.

    I haven't tested results for NSBinaryStoreType and NSInMemoryStoreType.

    0 讨论(0)
提交回复
热议问题