edit: figured out, user error.
i want data current user , post classname. code below. working except post["postcategory"] = pfuser.currentuser()!["lastviewed"] as? string post doesnt add ["lastviewed"] as? string
whole code:
var post = pfobject(classname: "post") post["message"] = singlecomparecomment.text post["userid"] = pfuser.currentuser()!.objectid! post["postcategory"] = pfuser.currentuser()!["lastviewed"] as? string post.saveinbackground
Comments
Post a Comment