ios - Setting a PFUser.CurrentUser() pointer field -


i working on project using parse, , having hard time changing value. every user, there field called "privatedata", has fields. access it, have no problem doing this:

pfuser.currentuser()!["privatedata"]!["locations"]! 

however, when try change "locations, errors. field name invalid, cannot subscript value of type ... or trying change immutable value.

i tried:

pfuser.currentuser()!["privatedata"]!["locations"]! = bla bla bla 

i "trying change immutable value"

and when user .valueforkey:

pfuser.currentuser()!["privatedata"]!.valueforkey("locations",blabla) 

i error 105, bad field name.

any ideas?

thanks time

charles


Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -