- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath{
//셀 선택시 실행될 메서드
}
-(CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath{
//셀 높이 설정
}
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section{
//셀 갯수 설정
}
//
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{
//custom cell define
NSString *CellIdentifier = [NSString stringWithFormat:@"S%dR%da",(int)indexPath.section,(int)indexPath.row];
//셀 구분자 설정
RankListTableViewCell *cell = (RankListTableViewCell*)[tableView dequeueReusableCellWithIdentifier:CellIdentifier];
if(cell == nil){
cell = [[RankListTableViewCell alloc]initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier];
//cell 컨텐츠 설정
}
return cell;
}
'ios 개발' 카테고리의 다른 글
ios objective c tableview 끝에서 data reload하기 (0) | 2017.08.21 |
---|---|
[ios] UItabbarController 관련 메서드 (0) | 2017.07.12 |
[ios] plist 읽어오기 및 쓰기 (0) | 2017.07.10 |
[arcjeen] 1. ios UILabel (0) | 2017.03.14 |
WRITTEN BY
- arcjeen
ios 관련문의 slimforce@naver.com