This is my technical blog about programming, server setup & configuration, technical learning experience.
https://www.apple.com/my/swift/
123456789
let tap = UITapGestureRecognizer(target: self, action: Selector("tableViewTapped:"))// if this doesn't set to `false`, the table view cell won't takes any effect on taptap.cancelsTouchesInView = falseself.tableView.addGestureRecognizer(tap)// ...func tableViewTapped(sender: UITapGestureRecognizer) { self.view.endEditing(true) // hide keyboard}
UITableViewCell
12
self.tableView.rowHeight = UITableViewAutomaticDimensionself.tableView.estimatedRowHeight = 44.0