Note that there are some explanatory texts on larger screens.

plurals
  1. POUIImageview in TableView
    primarykey
    data
    text
    <p>I have to display image in tableview,i got all images but it does not display. Here Array contains 3 images, these images came from server. when cell for row at indexpath call it display only 3rd image that is last image 1st and 2nd row will be blank but when it scroll my tableview from bottom to top than only 1st and 2nd image displayed.</p> <p>-</p> <pre><code> (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { UITableViewCell *cell = nil; static NSString *CellIdentifier = @"Cell"; cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier]; if (cell == nil) { cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier]; } cell.selectionStyle = UITableViewCellSeparatorStyleNone; cell.backgroundColor = [UIColor clearColor]; if (appDelegate.array_xml != (id)[NSNull null]) { ObjMore = [appDelegate.array_xml objectAtIndex:indexPath.row]; //imageview NSString *str_img = ObjMore.iconurl; str_img = [str_img stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceAndNewlineCharacterSet]]; NSLog(@"str_img: %@", str_img); self.imageicon = [[UIImageView alloc]initWithFrame:CGRectMake(10, 10, 50, 50)]; NSURL *url = [NSURL URLWithString:str_img]; NSLog(@"url %@",url); [[AsyncImageLoader sharedLoader]cancelLoadingURL:url]; self.imageicon.imageURL = url; self.imageicon.userInteractionEnabled = YES; self.imageicon.tag = indexPath.row; self.imageicon.backgroundColor = [UIColor clearColor]; [cell.contentView addSubview:self.imageicon]; } return cell; } </code></pre> <p>Please Help. Thanks in Advance.</p>
    singulars
    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.
 

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