我想抓住" firstName"和" lastName"关键属性并将其显示在单元格中。这就是我所拥有的:
required init(coder aDecoder: NSCoder) {
super.init(coder: aDecoder)
self.parseClassName = "User"
//Right now, it'll only display the first name
self.textKey = "firstName"
}
override func queryForTable() -> PFQuery {
let query = PFUser.query()
query?.whereKey("firstName", containsString: searchString)
return query
}
如何存储同时包含" firstName"的变量?和" lastName"属性?