У меня есть UITableView, и я хочу, чтобы каждая ячейка была фиксированной высоты в 50 пикселей, как это можно сделать в 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];
}