Note that there are some explanatory texts on larger screens.

plurals
  1. POi have to download profile images according to there id and show in uitableview cell
    primarykey
    data
    text
    <p>I need to be able to send id as parameter along with the URL. Then the program needs to download the image asynchronously and show the images in a uitableview cell. How can I go about accomplishing this? Here is what I have so far:</p> <pre><code>- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{ UITableViewCell *cell=[tableView dequeueReusableCellWithIdentifier:@"lisn"]; cell=[[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleSubtitle reuseIdentifier:@"lisn"] autorelease]; [[cell textLabel] setFont:[UIFont systemFontOfSize:14.0]]; switch([indexPath section]){ case 0: cell.textLabel.text=[arryList objectAtIndex:indexPath.row]; CGRect memberFrame=CGRectMake(240,18,10,30); UILabel *members=[[[UILabel alloc] initWithFrame:memberFrame ] autorelease]; members.text=[arryList objectAtIndex:indexPath.row + 3]; [cell.contentView addSubview:members]; break; case 1: cell.textLabel.text=@"Start date:"; CGRect dateFrame=CGRectMake(80,6,180,20); UILabel *sDate=[[[UILabel alloc] initWithFrame:dateFrame] autorelease]; sDate.text=[arryList objectAtIndex:indexPath.row + 1 ]; [cell.contentView addSubview:sDate]; cell.detailTextLabel.text=@"End date:"; CGRect enddateFrame=CGRectMake(80,22,180,50); UILabel *eDate=[[[UILabel alloc] initWithFrame:enddateFrame] autorelease]; eDate.text=[arryList objectAtIndex:indexPath.row + 2]; [cell.contentView addSubview:eDate]; break; case 2: cell.textLabel.text=[arryList objectAtIndex:indexPath.row + 4]; break; case 3: cell.imageView.image = [UIImage imageNamed:@"ic_place_holder_small.png"]; break; break; } return cell; } </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload