0
테이블보기에서 어떻게 구현되고 있습니까? 테이블보기에서 결과 표시를 제한하려면 예를 들어 10 개의 결과를 표시해야합니다. 그런 다음 테이블 셀의 마지막 부분에 다음 데이터 세트를로드하거나 삽입 할 때 "다음 결과"부분이 테이블보기에 삽입됩니다.테이블보기 다음 결과
Pls. 조언 해줘. ... 감사
는테이블보기에서 어떻게 구현되고 있습니까? 테이블보기에서 결과 표시를 제한하려면 예를 들어 10 개의 결과를 표시해야합니다. 그런 다음 테이블 셀의 마지막 부분에 다음 데이터 세트를로드하거나 삽입 할 때 "다음 결과"부분이 테이블보기에 삽입됩니다.테이블보기 다음 결과
Pls. 조언 해줘. ... 감사
는이 유일한 해결책이 아니다 물론
- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView
{
return 2;
}
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
{
if (indexPath.section == 0)
return 10;
else {
return 1;
}
}
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
UITableView *cell;
if (indexPath.section == 0)
cell = (UITableViewCell*)[tableView dequeueReusableCellWithIdentifier:@"normalCell"];
else
cell = (UITableViewCell*)[tableView dequeueReusableCellWithIdentifier:@"nextCell"];
if (!cell) {
if (indexPath.section == 0)
cell = [[UITableViewCell alloc] initWithFrame:CGRectZero reuseIdentifier:@"normalCell"];
else
cell = [[UITableViewCell alloc] initWithFrame:CGRectZero reuseIdentifier:@"nextCell"];
}
if (indexPath.section == 0) {
// Set your normal cells
} else {
// Set your next cell
}
}
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
if (indexPath.section == 0) {
// your normal cells here
} else {
// your next cell here
}
}
... 2 섹션 jQuery과를 만들 수 있지만, 그것은 작동