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

Popular posts from this blog

javascript - Slick Slider width recalculation -

jsf - PrimeFaces Datatable - What is f:facet actually doing? -

angular2 services - Angular 2 RC 4 Http post not firing -