UITableViewCellStyleValue1 인 셀을 사용하여 데이터 소스에 항목을 만드는 방법은 무엇입니까? 내가 직접 사용자 지정 셀을 만들어야합니까? 샘플 카탈로그에는 아무 것도 보이지 않습니다.Three20 UITableViewCellStyleValue1
감사, 호위
UITableViewCellStyleValue1 인 셀을 사용하여 데이터 소스에 항목을 만드는 방법은 무엇입니까? 내가 직접 사용자 지정 셀을 만들어야합니까? 샘플 카탈로그에는 아무 것도 보이지 않습니다.Three20 UITableViewCellStyleValue1
감사, 호위
UITableViewCellStyleValue1를 사용하는 점은 그래서 더 사용자 정의 레이아웃을 사용하지 않는, 미리 정의 된 레이아웃을 사용한다는 것입니다.
예 :
// Customize the appearance of table view cells.
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
static NSString *CellIdentifier = @"Cell";
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
if (cell == nil) {
cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleValue1 reuseIdentifier:CellIdentifier] autorelease];
}
// Configure the cell.
cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator;
cell.textLabel.text = @"SettingLabel";
cell.detailTextLabel.text = @"SettingValue";
return cell;
}
새로운 테이블 항목 셀이 테이블 설정 셀 스타일을 에뮬레이트이 추가되었다. https://github.com/facebook/three20/pull/682
수동으로 병합하거나 다음 변경 사항이 포함 된 다음 3 월 20 일 출시를 기다리는 중 하나를 사용할 수 있습니다.