Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我尝试使用 cell.contentview.bounds 但它给出的错误是它不可分配的东西。有人知道怎么做这个吗?
使用tableView delegate方法:
tableView delegate
- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath{ return 80; //returns height for the tableview cell }
你只需要 1 行代码....
[tableview setRowHeight:100];