- , .
pagination " ..." , :
1) , PFTableViewCell. PaginationCell.
2) PaginationCell :
import UIKit
import Parse
import ParseUI
class PaginateCell: PFTableViewCell {
override init(style: UITableViewCellStyle, reuseIdentifier: String?) {
super.init(style: style, reuseIdentifier: "paginateCell")
}
required init(coder aDecoder: NSCoder) {
super.init(coder: aDecoder)!
}
reuseIdentifier "paginateCell". .
3) PFQueryTableViewController :
override func tableView(tableView: UITableView, cellForNextPageAtIndexPath indexPath: NSIndexPath) -> PFTableViewCell? {
}
3) nib. paginateCellNib.xib. , . . PaginationCell, , IBoutlets .
4) cellForNextPageAtIndexPath :
override func tableView(tableView: UITableView, cellForNextPageAtIndexPath indexPath: NSIndexPath) -> PFTableViewCell? {
tableView.registerClass(PaginateCell.self, forCellReuseIdentifier: "paginateCell")
tableView.registerNib(UINib(nibName: "paginateCellNib", bundle: nil), forCellReuseIdentifier: "paginateCell")
let cell = tableView.dequeueReusableCellWithIdentifier("paginateCell") as! PaginateCell
cell.yourLabelHere.text = "your text here"
return cell
}