Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <Agent>
- <id>3422</id>
- <currentstatus>Logged Off</currentstatus>
- <picture>1</picture>
- </Agent>
- <Agent>
- <id>3432</id>
- <currentstatus>Logged Off</currentstatus>
- <picture>0</picture>
- </Agent>
- UIImage * cellimages = [[UIImage alloc]init];
- NSString *string1 = @"http://telecomstats.co.uk/images/LLReaderProfile/";
- NSString *cellvalue =[[[[self rssParser]rssItems]objectAtIndex:indexPath.row]picture];
- NSString* disable = [[NSString alloc] initWithString:@"0"];
- if (cellvalue == disable)
- {
- cellimages = [UIImage imageWithContentsOfFile:@"http://telecomstats.co.uk/images/LLReaderProfile/noimage.jpg"];
- }
- else {
- cellimages = [string1 stringByAppendingString:[[[[self rssParser]rssItems]objectAtIndex:indexPath.row]id]];
- cellimages = [cellimages stringByAppendingString: @".jpg"];
- }
- cellimages = [[UIImage alloc] initWithData:[NSData dataWithContentsOfURL:[NSURL URLWithString:cellimages]]];
- cell.imageView.image = cellimages;
- cellimages = [UIImage imageWithContentsOfFile:@"http://telecomstats.co.uk/images/LLReaderProfile/noimage.jpg"];
- cellimages = [[UIImage alloc] initWithData:[NSData dataWithContentsOfURL:[NSURL URLWithString:cellimages]]];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement