當設定

        tableView.estimatedRowHeight = 80

        tableView.rowHeight = UITableView.automaticDimension

後,若console出現

Warning once only: Detected a case where constraints ambiguously suggest a height of zero for a tableview cell's content view. We're considering the collapse unintentional and using standard height instead.

代表你的cell設定autoLayout條件不夠所造成,必需要再加上其他constraint條件才行

 

 

arrow
arrow

    狼翔月影 發表在 痞客邦 留言(0) 人氣()