私はiOSが初めてです。異なるボタン アクションで異なる画像配列を渡したい。すべてのボタン アクションで 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に渡しています。
前もって感謝します..