samedi 20 septembre 2014

iOS: Generate random object ID


Vote count:

0




I want to use this method to fetch a random entity of core data:



randomQuote = [managedObjectContext objectWithID:randomID];


But I don't know how to set a random ID, which is an instance of NSManagedObjectID. Could anyone help me?



asked 13 secs ago







iOS: Generate random object ID

Aucun commentaire:

Enregistrer un commentaire