iphone - NSFetchRequest without sort descriptors -
We can not use NSFetchRequest without providing NSSortDescriptor (s) What I want to do is get results And shows them in the order in which they were created. Is there a built-in method to do this, or will I have to create a new "auto-increment" field? (Everything that stands for Coreda, in my opinion).
Anything about the core data order does not guarantee that you create an "auto increment" field Do not need; However, you can make a suitable attribute as you clearly note that something that was created, after that you should add the date property to your data object. After that, sort it out.
You can easily set the set of the object in the didAwakeFromInsert
method.
Comments
Post a Comment