swift - How can I convert a PFUser into a String? -


how can convert pfuser value type string display on label?

something this:

username = pfuser.getcurrentuser()

a pfuser.currentuser() returns pfobject many different properties. need data out of object , put on string.

for instance, if wanted current user's username..

let username = pfuser.currentuser()?.username  

Comments

Popular posts from this blog

javascript - How to process users in one specific order using map o each function? -

java - Two interface have same method name with different return type -

javascript - Linking from page A to a specific iframe on page B -