Custom Cell Row Height setting in storyboard is not responding

后端 未结 18 2127
名媛妹妹
名媛妹妹 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:32

    You can get height of UITableviewCell (in UITableviewController - static cells) from storyboard with help of following lines.

    - (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath
    {
       CGFloat height = [super tableView:tableView heightForRowAtIndexPath:indexPath];
    
        return height;
    }
    

提交回复
热议问题