Skip to content

Instantly share code, notes, and snippets.

@bauloc
Created August 2, 2016 09:47
Show Gist options
  • Save bauloc/0877ffb4b0a11f2e16fdb4816dd5a9e4 to your computer and use it in GitHub Desktop.
Save bauloc/0877ffb4b0a11f2e16fdb4816dd5a9e4 to your computer and use it in GitHub Desktop.
UITableView
override func viewDidLoad() {
super.viewDidLoad()
let nibName = UINib(nibName: "BLActionCell", bundle:nil)
self.tableAction.registerNib(nibName, forCellReuseIdentifier: "blaction.cell")
//self.modalPresentationStyle = .OverFullScreen
// Do any additional setup after loading the view.
}
func tableView(tableView: UITableView!, numberOfRowsInSection section: Int)->Int {
return 5
}
func tableView(tableView: UITableView!, heightForRowAtIndexPath indexPath: NSIndexPath) -> CGFloat {
return 40
}
func numberOfSectionsInTableView(tableView: UITableView!) -> Int {
return 1
}
func tableView(tableView: UITableView!, cellForRowAtIndexPath indexPath: NSIndexPath!) -> UITableViewCell {
let cell = tableView.dequeueReusableCellWithIdentifier("Cell", forIndexPath: indexPath) as! BLActionCell
//cell.titleLabel.text = "\(ListArray.objectAtIndex(indexPath.item))"
// cell.labelTitle.text = "\(ListArray.objectAtIndex(indexPath.row))"
return cell
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment