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

Fail to load namespace Spring Security http://www.springframework.org/security/tags -

sql - MySQL query optimization using coalesce -

unity3d - Unity local avoidance in user created world -