从解析列到标签中获取值

时间:2018-09-07 18:52:36

标签: ios swift xcode parse-platform swift4.2

我制作了一个使用Parse的小应用程序,有一个signView viewController,注册后有一个usersVC viewController。

在“解析”仪表板内部,我添加了一个名为profileName的列,我希望在注册后将该列中的值捕获到某个标签。

这里解析仪表板:

enter image description here

我的意思是我需要类似profileNameLbl.text = PFUser.current().profileName

但是当然不会编译。

1 个答案:

答案 0 :(得分:2)

在Swift 4.2上使用:

PFUser.current()?[“profileName”] as? String
相关问题