【发布时间】:2013-10-27 21:47:54
【问题描述】:
我想将UITableViewCell 的高度设置为我在情节提要中指定的高度。
- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath*)indexPath{
UITableViewCell *cell = [tableView cellForRowAtIndexPath:indexPath];
return cell.frame.size.height;
}
使用此代码,应用程序崩溃。
【问题讨论】:
-
仅使用xcode 标签来回答有关 IDE 本身的问题。谢谢!
标签: ios objective-c uitableview height