나는 NSArray의 값을 numberOfRowsInSection의 섹션 값으로 지정하기위한 정수로 변환하려고하는데 그룹핑 된 테이블 뷰 기반의 작업을하고 있지만 다음 코드를 넣으면 expection을 throw합니다 .nsarray의 값을 정수 값으로 변환하는 방법
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
{
int sec;
if (section == 0){ sec=6; }
else if(section == 1){ sec=6; }
else if(section == 2){
sec=[[rsvn_detail objectAtIndex:0] objectForKey:@"totalrecord"];
}
return sec;
}
누구 귀하의 제안에 대해 그것을
감사합니다, 사티시
괜찮습니다. 감사합니다. –
답변으로 표시해야 함 Satish ... – NinjaCat