<分区>
我没有足够的声誉来发布图片, 我正在使用 Parse 进行注册,它显示“PFUser”没有名为“subscript”的成员错误
请检查下面的代码
var user = PFUser()
user.username = usernameTextField.text
user.email = emailTextField.text
user.password = passwordTextField.text
let imageData = UIImagePNGRepresentation(self.profileImage.image)
let imageFile = PFFile(name: "profilePhoto.png", data: imageData)
user["photo"] = imageFile -> [error in this line]
user.signUpInBackgroundWithBlock { (succeeded, error) -> Void in
if error == nil {
println("Signup Successful")
}
else {
println("Signup Failed")
}
}