I would rather place this in viewDidLoad() , otherwise it will create a kind of floating effect, which I don't prefer. here is my solution in quick
let footerView = UIView(frame:CGRectMake(0,0,self.view.frame.size.width,30)) footerView.backgroundColor = UIColor.clearColor() let footerLabel = UILabel(frame: footerView.frame) footerLabel.textColor = UIColor.flatGrayColor() footerLabel.textAlignment = NSTextAlignment.Center footerView.addSubview(footerLabel) footerLabel.text="\(self.items.count) Items"; self.tableView.tableFooterView=footerView
spaceMonkey Jul 04 '16 at 3:15 2016-07-04 03:15
source share