ios - Swift - How to check a value in parse and return it -
so yeah i'm new swift, , i'm developing ios application final project problem follows:
the app ask user when he/she sign specify gender male/female, value stored in user class in parse under column named "gender".
in app, males , females not have same menu , interface. based on that, want check when user login wether he/she male or female , redirect each 1 related interface.
i couldn't figure out right query that, appreciated. thank you
try this:
if let user = pfuser.currentuser() { let gender = user.objectforkey("gender") as! string }
Comments
Post a Comment