1. <Agent>
  2. <id>3422</id>
  3. <currentstatus>Logged Off</currentstatus>
  4. <picture>1</picture>
  5. </Agent>
  6. <Agent>
  7. <id>3432</id>
  8. <currentstatus>Logged Off</currentstatus>
  9. <picture>0</picture>
  10. </Agent>
  11.  
  12. UIImage * cellimages = [[UIImage alloc]init];
  13. NSString *string1 = @"http://telecomstats.co.uk/images/LLReaderProfile/";
  14. NSString *cellvalue =[[[[self rssParser]rssItems]objectAtIndex:indexPath.row]picture];
  15. NSString* disable = [[NSString alloc] initWithString:@"0"];
  16.  
  17.  
  18. if (cellvalue == disable)
  19. {
  20. cellimages = [UIImage imageWithContentsOfFile:@"http://telecomstats.co.uk/images/LLReaderProfile/noimage.jpg"];
  21. }
  22. else {
  23.  
  24. cellimages = [string1 stringByAppendingString:[[[[self rssParser]rssItems]objectAtIndex:indexPath.row]id]];
  25. cellimages = [cellimages stringByAppendingString: @".jpg"];
  26.  
  27. }
  28.  
  29. cellimages = [[UIImage alloc] initWithData:[NSData dataWithContentsOfURL:[NSURL URLWithString:cellimages]]];
  30. cell.imageView.image = cellimages;
  31.  
  32. cellimages = [UIImage imageWithContentsOfFile:@"http://telecomstats.co.uk/images/LLReaderProfile/noimage.jpg"];
  33. cellimages = [[UIImage alloc] initWithData:[NSData dataWithContentsOfURL:[NSURL URLWithString:cellimages]]];