显示延迟图像加载scrollview用于显示按活动指示器加载的单个图像

时间:2013-03-22 07:13:28

标签: iphone objective-c uiscrollview

如何在scrollview中通过lazyimageloading显示图像任何人都可以建议回答


xview = 21;//30
yview = 21;
yscroll = 150;//200
h=1;
NSLog(@"arr count %d",[filelistarr count]);

for(int s=0;s<[filelistarr count];s++)
{
    obj=[filelistarr objectAtIndex:s];
    scrollview.contentSize=CGSizeMake(320, yscroll);
    if(h%4 == 0)
    {
        xview=21;
        h=1;
        yview=yview+120;
        //yscroll=yscroll+20;
    }

    imgbtn = [UIButton buttonWithType:UIButtonTypeCustom];
    imgbtn.frame = CGRectMake(xview, yview, 80, 80);
    imgbtn.layer.borderWidth = 0;
    imgbtn.layer.borderColor = [[UIColor blackColor] CGColor];
    imgbtn.tag=(s+1);

}
  • 图像设置按钮正确但如何设置延迟图像加载请帮助我....

1 个答案:

答案 0 :(得分:0)