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

c# - How can I have the VS Debugger break in the correct location for exceptions thrown in Async methods in a Console App? -

php - Issues outputting data after prepared statement with loops -

javascript - How to pass a property by reference -