ios - Retrieving Custom Parse User Variables -


i creating app uses parse. have set user sign , login. have username , password options figured out, want third option. going string called "school"

  user["school"] = "your school here" 

and created. having trouble accessing current user in class.

i need have string, can have pfquery similar

query.wherekey("pfobject.school", equalto: currentuser["school"]) 

but not sure syntax choose. if other information needed, let me know. thanks.

cast object string below:

query.wherekey("school", equalto: currentuser!["school"] as! string) 

Comments

Popular posts from this blog

python - TypeError: start must be a integer -

c# - DevExpress RepositoryItemComboBox BackColor property ignored -

django - Creating multiple model instances in DRF3 -