는 테이블의 셀에 UIImageView을 추가하고 이미지에 image
숙박 시설의 설정. 당신은 당신의 cellForRowAtIndexPath: 방법에서이 작업을 수행 할 것 : 비동기 접근 밖으로 this article
-(UITableViewCell *)tableView:(UITableView *) tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
static NSString *MyIdentifer = @“MyIdentifier”;
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:MyIdentifier];
if(cell == nil) {
cell = [[[UITableViewCell alloc] initWithFrame:CGRectZero
reuseIdentifier:MyIdentifier] autorelease];
UIImageView *imgView = [[UIImageView alloc] initWithFrame: CGRectMake(3,3,75,75)];
imgView.tag = 7;
}
[cell setText: (NSString*)[yourTextArray objectAtIndex: indexPath.row];
UIImageView *theImgView = (UIImageView*)[cell viewWithTag: 7];
theImgView.image = (UIImage*)[yourImageArray objectAtIndex: indexPath.row]
return cell;
}
확인합니다.