答案 0 :(得分:1)
创建自定义视图:
let customView = UIView(frame: CGRect(x: 0, y: 0, width: 200, height: 50))
customView.backgroundColor = UIColor.red
var label = UILabel(frame: CGRectMake(0, 0, 200, 21))
label.center = CGPointMake(160, 284)
label.textAlignment = NSTextAlignment.Center
label.text = "sawthinkar"
customView.addSubview(label)
然后添加到表格查看页脚:
tableView.tableFooterView = customView
您还可以使用xib创建自定义视图,并在自定义视图中设置所需的值。