
Untitled
By: a guest on
May 28th, 2012 | syntax:
None | size: 0.51 KB | hits: 14 | expires: Never
Setting image to UIImageView in tableview cell makes the scrolling and rotation slow
cell.Icon=[self imageForCellAtIndex:indexPath.row];
-(UIImage*)imageForCellAtIndex:(int)index
{
Obj *ob=[mList objectAtIndex:index];
if([mIcons objectForKey:app.Icon100])
return [UIImage imageWithData:[mIcons objectForKey:ob.IconLink]];
else
{
[self DownloadIconForIndex:index];
}
return nil;
}
@property(nonatomic,assign)UIImage *AppIcon;
-(void)setIcon:(UIImage *)icon
{
iconImageView.image=icon;
}