Xcode 초보자로서 내 앱의 표 셀에 미리보기 이미지를 표시하고 싶습니다. 지금은 JSON 데이터를 구문 분석하여 셀의 제목과 부제목에 게시하는 코드가 있습니다.어떻게 xCode의 표 셀에 축소판 이미지를 표시 할 수 있습니까?
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"MainCell"];
if(cell == nil){
cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleSubtitle reuseIdentifier:@"MainCell"];
}
cell.textLabel.text = [[news objectAtIndex:indexPath.row] objectForKey:@"receta"];
cell.detailTextLabel.text = [[news objectAtIndex:indexPath.row] objectForKey:@"koha"];
return cell;
}
어떻게하면 셀 오른쪽에 축소판을 표시 할 수 있습니까?
감사합니다.
자신의 레이아웃과 함께 사용할 수있는 사용자 지정 셀을 만듭니다. Google에서 사용자 정의 UITableViewCells를 검색하십시오. – Popeye
뽀빠이, 이걸 도와 주겠니? 검색했지만 Xcode에 대해 조금 알고 있기 때문에 유용하지 않습니다. 오늘 열어 볼 세 번째입니다. –
나는 약간의 튜토리얼을 추천합니다. 다음은 좋은 자습서입니다. http://blog.spritebandits.com/2012/03/13/creating-custom-uitableviewcells-from-xibs-step-by-step-tutorial/ – Popeye