CGRect cellBounds = cell.bounds; cellBounds.size.width = contentViewWidth; cell.bounds = cellBounds; 如果UITableView设置contentInset,这样设置cell的宽度异常吧
CGRect cellBounds = cell.bounds;
cellBounds.size.width = contentViewWidth;
cell.bounds = cellBounds;
如果UITableView设置contentInset,这样设置cell的宽度异常吧