func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell {
let cell = UITableViewCell(style: UITableViewCellStyle.Value1, reuseIdentifier: "cellId")
var cellFrame = cell.frame
cell.detailTextLabel?.lineBreakMode = NSLineBreakMode.ByTruncatingTail
let maxiNumlinSize = CGSizeMake(KEY_SCREEN_SIZE.width, 300)
let rect:CGSize = (cell.detailTextLabel?.sizeThatFits(maxiNumlinSize))!
cellFrame.size.height = rect.height + 60
cell.frame = cellFrame
return cell
}
func tableView(tableView: UITableView, heightForRowAtIndexPath indexPath: NSIndexPath) -> CGFloat {
let cell:UITableViewCell = self.tableView(tableView, cellForRowAtIndexPath: indexPath)
return cell.frame.size.height
}