Created
August 2, 2016 09:47
-
-
Save bauloc/0877ffb4b0a11f2e16fdb4816dd5a9e4 to your computer and use it in GitHub Desktop.
UITableView
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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