이 블로그 검색

2011년 7월 19일 화요일

테이블 뷰 몇가지 UI 요소

* 테이블 뷰 셀에 더보기 표시 ('>') 만들기

-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{

  
cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator;

}

* 테이블 뷰 셀 클릭시 나왔다 사라지게

-(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
    [tableView deselectRowAtIndexPath:indexPath animated:YES];

}  

댓글 없음:

댓글 쓰기