Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
Sinan the Thinker
7,980 PointsHow to assign auto incremented unique number for PFObject?
Hi guys,
I am developing a simple b2b app, where customers could apply their suppliers for a certain machinery part (apply form). They fill some textfields and when they press on send button i want to save this information at parse.
I want that each apply has a unique ID/Number. I've read "incrementKey and byAmount", but I couldn't solve that each apply automatically got a +1 incremented unique ID/Number for the form.
This is what I had; [onderdeelAanvraag incrementKey:@"AanvraagNummer" byAmount:[NSNumber numberWithInt:1]];