         }
     }
     
+    // MARK: - Actions
+    
+    private func updateCellHeights() {
+        if let tableView = superviewTableView {
+            tableView.beginUpdates()
+            tableView.endUpdates()
+        }
+    }
+    
     // MARK: - UITextField
     
     override func placeholderRectForBounds(bounds: CGRect) -> CGRect {

    override func layoutSubviews() {
        updateViewIfNeeded()
        super.layoutSubviews()
    }

}

class NibTextField: UITextField {

    // MARK: - Variables
    
    @IBInspectable var autoUpdateCellHeights: Bool = true
    
    /// Override in subclass
    var contentView: NibView? {
