Custom Cell Row Height setting in storyboard is not responding

后端 未结 18 2121
名媛妹妹
名媛妹妹 2020-11-30 16:54

I am trying to adjust the cell height for one of the cells on my table view. I am adjusting the size from the \"row height\" setting inside the \"size inspector\" of the cel

18条回答
  •  青春惊慌失措
    2020-11-30 17:24

    If you want to set a static row height, you can do something like this:

    - (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath
    {
        return 120;
    }
    

提交回复
热议问题