到目前为止我的代码:
var query2 = PFQuery(className: "Post")
query2.whereKey("alias", equalTo: self.currentname)
query2.setValue(self.usernametextfield.text, forKey: "alias")
query2.findObjectsInBackgroundWithBlock { (objects, NSError) -> Void in
for objects in objects {
}
}
}
我想设置对象["别名"]等于从查询中检索到的所有对象的字符串。我该怎么做呢?