2
我的代碼是下面在iCarousel圖像重疊。
- (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個索引圖像與其他圖像重疊。請給我這個解決方案。
指數? – rishi 2012-04-24 09:42:22