Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- override func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell
- {
- // Various setup omitted
- let button = (cell as! LabelButtonCell).button
- button.setTitle(buttonTitle, forState: UIControlState.Normal)
- return cell as! UITableViewCell
- }
- override func viewDidLoad()
- {
- super.viewDidLoad()
- self.tableView.estimatedRowHeight = 44
- self.tableView.rowHeight = UITableViewAutomaticDimension
- self.tableView.delaysContentTouches = false
- for subview in self.tableView.subviews
- {
- if let scrollView = subview as? UIScrollView
- {
- scrollView.delaysContentTouches = false
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement