I would just like to say that this is a great project for anyone wanting to learn parse, its nice and clean and easy to edit
That being said I am having one problem that I hope you can help me with
The code below looks like it should work but sadly it does not
Can you let me know what I’m doing wrong?
What I’m trying to do is show a user all the rooms another user has set up, this code should look at the class “Rooms” then look at the “userPointer” and return all the rooms that equal that userPointer
Any advice is very much appreciated
let query = PFQuery(className: "Rooms")
query.whereKey("userPointer", equalTo: "GqaHUrlpHg")
var userObj = PFUser()
I would need to see your code and database, sorry, i can’t help you with such poor info, because the Rooms class already has a userPointer column, so where have you added such userPointer? You cannot get a user pointer with a String like “GqaHUrlpHg”, that’s a String, while a userPointer it’s an instance of PFUser(), you keep getting confused between a user objectID (a String) and a user pointer (PFUser() type).
We’re sorry but we don’t have so much available time to deal with this customization, so please contact us by our profile’s contact form and explain us in details what your app should do, where you want to show user’s Rooms, besides the Home screen that already does that, maybe send us a mockup which will help us understand how your app should work, and we may guide you through it in a short time and the both of us will save time and effort on this issue Thanks!
Use, by you or one client, in a single end product which end users are not charged for. The total price includes the item price and a buyer fee.
Why buy with Envato
Use, by you or one client, in a single end product which end users can be charged for. The total price includes the item price and a buyer fee.
Unlimited downloads only
$29 p/m on Envato Elements
Download over 18,000 items now
Learn almost anything with
Envato Tuts+ for free
9000 free tutorials, 3000 paid courses
Designers matched perfectly to
you on Envato Studio
2000 artists ready to undertake your work