从Parse数据库Swift显示单元格的两个键

时间:2015-08-15 19:28:04

标签: swift parse-platform key

我想抓住" 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"属性?

0 个答案:

没有答案