Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 28th, 2012  |  syntax: None  |  size: 0.51 KB  |  hits: 14  |  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. Setting image to UIImageView in tableview cell makes the scrolling and rotation slow
  2. cell.Icon=[self imageForCellAtIndex:indexPath.row];
  3.        
  4. -(UIImage*)imageForCellAtIndex:(int)index
  5. {
  6.   Obj *ob=[mList objectAtIndex:index];
  7.   if([mIcons objectForKey:app.Icon100])
  8.     return [UIImage imageWithData:[mIcons objectForKey:ob.IconLink]];
  9.   else
  10.   {
  11.     [self DownloadIconForIndex:index];
  12.   }
  13.   return nil;
  14. }
  15.        
  16. @property(nonatomic,assign)UIImage *AppIcon;
  17.        
  18. -(void)setIcon:(UIImage *)icon
  19. {
  20.   iconImageView.image=icon;
  21. }