         tableView.registerClass(KeywordCell.self, forCellReuseIdentifier: KeywordCell.reuseIdentifier)
         tableView.dataSource = self
         tableView.delegate = self
-        tableView.rowHeight = 30
+        tableView.rowHeight = calculateLabelHeight(UIFont.systemFontOfSize(18)) + 15
         tableView.scrollEnabled = false
         tableView.separatorStyle = .None
         return tableView


        let constraintsH = NSLayoutConstraint.constraintsWithVisualFormat("H:|[promptLabel]|", options: [], metrics: nil, views: views)

        let constraintsV = NSLayoutConstraint.constraintsWithVisualFormat("V:|-40-[promptLabel]-20-[keywordsTableView]|", options: [.AlignAllCenterX, .AlignAllLeading], metrics: nil, views: views)

        NSLayoutConstraint.activateConstraints(constraintsH)
        NSLayoutConstraint.activateConstraints(constraintsV)


import UIKit

private func calculateLabelHeight(font: UIFont) -> CGFloat {
    let testString = NSString(string: "Yep") //随便设的
    let rect = testString.boundingRectWithSize(CGSize(width: UIScreen.mainScreen().bounds.width, height: CGFloat(FLT_MAX)), options: [.UsesLineFragmentOrigin, .UsesFontLeading], attributes: [NSFontAttributeName: font], context: nil)
    return rect.height
}

private class KeywordCell: UITableViewCell {

    static let reuseIdentifier = "KeywordCell"
