当前代码:
var query2 = PFQuery(className: "Post")
query2.whereKey("alias", equalTo: self.currentname)
query2.findObjectsInBackgroundWithBlock { (objectos, NSError) -> Void in
println(objects.count)
if objectos.count != 0 {
for objecto in objectos {
}
})
我想更改objecto中所有对象的列值。我试过了:
objecto["alias"]! = self.usernametextfield.text as AnyObject
但它不起作用。所以要澄清一下,我在查询Post,找到别名等于self.currentname的所有对象。我想更改找到self.usernametextfield.text的所有对象的字符串列。