In my iOS app, I am using the Parse.com framework. When the app is launched for the first time or the user isn’t signed in, the PFLogInViewController and the PFSignUpViewController will show up on the view. When the user creates his/her account, the application will automatically create the user, like always, but it will also create another variable under the user which is called isPrivate, which calls for a boolean. My question is how do I use the PFQuery to get the value of isPrivate for the currentUser?
In my iOS app, I am using the Parse.com framework. When the app is
Share
Querying helps you find many objects matching a criteria. This doesn’t really apply when you already know the object you want (the current user). You can decide whether the currentUser is private with
Though in this particular case, you don’t actually need to keep a separate field to determine whether the user is an anonymous user (the type created by automatic users). Try:
This works for all authentication utils (PFFacebookUtils, PFTwitterUtils, and PFAnonymousUtils). isLinkedWithUser determines whether those auth systems have credentials for a particular user.