Pastebin launched a little side project called HostCabi.net, check it out ;-)Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jun 12th, 2013  |  syntax: None  |  size: 1.15 KB  |  hits: 32  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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]]];