Tag Archives: Parse


I’d been having trouble populating a UITableView with the entire contents parse data in my iOS application.  Come to find out that when using Parse and referencing the objectId field, that you need to use dot notation and not by referencing the field like the other ones.

So, use this:  parseData.objectId
Instead of:  parseData[@”objectId”]

Who’d have thunk it.
Same when adding to the local data store.  I download the records from Parse and iterate through them to search the local data store.  If found it should do nothing, if not found add it to the db.  Because of the dot notation on the objectId field it would never find it because it search on <nil>.  So the same records got added over and over again.  All the other fields get added using the parseData[@”dataField”] type of reference, which threw me.

Finally, once I figured out to use parseData.objectId instead, it added it correct and found it the next time I launched it so there is only a single entry for it in the local db.

(it was at this point I laid my finger between my lips and made googly noises)

Now just have to format the cells in the table view, make the appropriate actions once the cell is tapped, and I am all done.

It is still a little slow at launch as it searches all the files and tables to add locally.  I’ll have revisit that, maybe only pull down the file name or some other reference to make it speedier.  It’s not horribly slow, but I would like it to be faster.