dynamically change height of cells in objective C

前端 未结 3 867
你的背包
你的背包 2021-01-06 04:03

I have created an app with a table view. Which uses a view and a label in each cell. But if I create the views and cells in the (!cell) code it returns empty cells and if I

3条回答
  •  灰色年华
    2021-01-06 04:11

    - (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath
    {
         return "your content height";
    }
    

提交回复
热议问题