【发布时间】:2011-09-13 05:24:31
【问题描述】:
我有一个 UITableView,我希望每个单元格的高度固定为 50px,如何在 Xcode4 中做到这一点?
这是我的表格视图,从 XIB 文件加载
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
static NSString *CellIdentifier = @"Cell";
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
if (cell == nil) {
cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier] autorelease];
}
【问题讨论】:
标签: iphone uitableview height