tableView
에 테이블 세부 정보를 행과 열 형식으로 아래 그림과 같이 표시하려고합니다.ios에서 tableview에 대한 행 줄을 추가하는 방법
나는 ViewController
에 UITableView
을 구현하고, 사용자 정의 셀을 추가하고 난 .Instead 내가 필요로하는 세포 사이의 공간을 원하는 그나마 지금
내 코드 내가 그것을 달성 할 수있는 방법
-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
AttendenceTableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"cell"];
AttendenceTableViewCell*cell=[[AttendenceTableViewCell alloc]init];
if (cell == nil) {
cell = [[ AttendenceTableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:@"cell"];
}
cell.textLabel.textColor=[UIColor colorWithRed:0.24 green:0.67 blue:0.94 alpha:1.0];
_attendenceTableView.tableFooterView = [[UIView alloc] initWithFrame:CGRectZero];
[email protected]"Date";
[email protected]"in";
[email protected]"out";;
[email protected]"duration";
[email protected]"status";
[spinner stopAnimating];
return cell;
}
입니다 ...? 다른 레이블에 대한 1. 추가보기 :
줄을 표시하는 스토리 보드에서보기를 사용할 수 있습니다. –
나는 date, in, out, duration, status 사이에 구두를 신어야한다. – remyr3my
나는 그 (것)들 사이에서 전망을 시도했다 그러나 서투르게 본다. – remyr3my