0
我是iOS新手。我想在不同的按钮操作中传递不同的图像数组。我想重装iCarousel在每一个按钮动作如何将图像数组传递给icarousel?如何重新加载图像阵列数据重新加载icarousel?
这里是我的代码
- (UIView *)carousel:(iCarousel *)carousel viewForItemAtIndex:(NSUInteger)index
{
UIView *view = [[UIImageView alloc] initWithImage:[UIImage imageNamed:[NSString stringWithFormat:@"%d.jpg",index]]];
view.tag=index;
view.frame = CGRectMake(70, 80, 180, 260);
return view;
}
目前我传递图像icarousel这样。
在此先感谢..