PFUser does not have a member named subscript?

梦想与她 提交于 2019-12-02 07:36:01

You can use the method setValue:forKey:

Example:

func signUp() {
    var user = PFUser()
    user.email = email.text
    user.setValue(firstName.text, forKey:"firstName")
    user.setValue(zipcode.text, forKey:"zipcode")
    user.objectId = objectId
//etc... }

If you are using iOS 9 you must download the new parse SDK, thats why you are having that problem.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!