我的代码如下
- (UIView *)carousel:(iCarousel *)carousel viewForItemAtIndex:(NSUInteger)index reusingView:(UIView *)view
{
UIImageView *imgView = nil;
if (view == nil)
{
NSLog(@"no is %i",index);
view = [[[UIView alloc] initWithFrame:CGRectMake(0, 0, 255, 255)] autorelease];
imgView = [[[UIImageView alloc] initWithImage:[ImagesCFArray objectAtIndex:index]] autorelease];
[view addSubview:imgView];
}
else
{
}
return view;
}
ImagesCfArray包含要显示的图像。轮播移动或滚动时,第0个索引图像会与其他图像重叠。请给我解决方案。
最佳答案
您可以显示itemWidth实现吗?返回值是否超过255?
关于ios - 在iCarousel中,图像重叠。,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10295377/