trycatch
trycatch

Reputation: 145

Grab value from parse column into label

I have made a small app that uses Parse, I have a signUp viewController, and after signing up I have a usersVC viewController.

Inside Parse dashboard I added a column named profileName, I want that after signing up to grab the value that is inside this column to some label.

Here parse dashboard:

enter image description here

I mean I need something like: profileNameLbl.text = PFUser.current().profileName

but of course this wont compile.

Upvotes: 0

Views: 28

Answers (1)

Nehorai Elbaz
Nehorai Elbaz

Reputation: 2452

On swift 4.2 use:

PFUser.current()?[“profileName”] as? String

Upvotes: 2

Related Questions