- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
    …
    if(cell == nil) {
        // 썸네일 삽입
        cell =[[[UITableViewCell alloc]initWithFrame:CGRectZero reuseIdentifier:SimpleTableIdentifier]autorelease] ;
 
        //제목 아래 표시하는법
        cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleSubtitle reuseIdentifier:SimpleTableIdentifier] autorelease];
        cell.detailTextLabel.text = @"XXXXXX";
        //제목 옆에 표시하는법
        cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleValue1 reuseIdentifier:SimpleTableIdentifier] autorelease];
        cell.detailTextLabel.text = @"XXXXXX";
        //제목은 작게하고 오른쪽에 하위제목 표시하는법
        cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleValue2 reuseIdentifier:SimpleTableIdentifier] autorelease];
        cell.detailTextLabel.text = @"XXXXXX";
    }
    …
}
반응형
    
    
    
  'Programming > iOS - ObjC' 카테고리의 다른 글
| NSArray - 내용 정렬된 상태로 얻어오기. (0) | 2010.11.26 | 
|---|---|
| UITableView - 각 section에 타이틀 추가 (0) | 2010.11.26 | 
| UITableView - Cell 높이 설정 (0) | 2010.11.26 | 
| UITableView - 더보기 버튼 추가 (disclosure) (0) | 2010.11.26 | 
| UITableView - 글자크기 수정 (0) | 2010.11.26 | 
| UITableView - 내용 넣기 (0) | 2010.11.22 | 
| UILabel - Line수 설정 (0) | 2010.11.22 | 
| UINavigationBar - 뒤로 버튼 이름변경 (0) | 2010.11.22 | 
| UINavigationBar - 버튼 달기 (0) | 2010.11.22 | 
| UINavigationBar - 타이틀 달기 (0) | 2010.11.22 |