你必须使用
   
    layoutSubviews
   
   如果您想做一些显示更改
  
  class AddCell: UITableViewCell {
    override func layoutSubviews() {
        super.layoutSubviews()
        // write your code here
    }
}
  
   //在视图控制器中-
这是可选的。如果使用错误,可能会导致一些错误。我不认识你们所有的员工。
  
  func tableView(tableView: UITableView!, cellForRowAtIndexPath indexPath: NSIndexPath!) -> UITableViewCell!  {
        var cell : UITableViewCell = tableView.dequeueReusableCellWithIdentifier("AddCell") as! AddCell
        cell.layoutSubviews()
        return cell
    }