How do I set a auto increment key in Realm?
Realm doesn’t have auto increment behavior, so you’ll need to manage that yourself. A question I’d encourage you to ask yourself about your data: Is it necessary to have sequential, contiguous, integer ID’s? If not, then a unique string primary key might be sufficient. Then you can use something like [[NSUUID UUID] UUIDString] to generate … Read more