2013-03-22 33 views
0

我如何通过滚动型lazyimageloading谁能请正确,但建议答案显示懒图像加载滚动视图的DISPLY indivial图像加载通过活动的指标


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); 

} 
  • 图像设置按钮如何显示的图像设置懒惰图片加载请帮我....
+0

'}' - 被窃听我。顺便说一句,反引号是什么? – tjameson 2013-03-22 07:19:23

回答

相关问题