Advertisement
Guest User

Untitled

a guest
Jul 2nd, 2015
212
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. override func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell
  2. {
  3. // Various setup omitted
  4.  
  5. let button = (cell as! LabelButtonCell).button
  6. button.setTitle(buttonTitle, forState: UIControlState.Normal)
  7. return cell as! UITableViewCell
  8. }
  9.  
  10. override func viewDidLoad()
  11. {
  12. super.viewDidLoad()
  13. self.tableView.estimatedRowHeight = 44
  14. self.tableView.rowHeight = UITableViewAutomaticDimension
  15. self.tableView.delaysContentTouches = false
  16.  
  17. for subview in self.tableView.subviews
  18. {
  19. if let scrollView = subview as? UIScrollView
  20. {
  21. scrollView.delaysContentTouches = false
  22. }
  23. }
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement