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
Post a Comment