我在我的应用程序中使用iCarousel,我需要获取iCarousel的当前索引,并将该索引显示在一个标签( subView of self.view)中,该标签不是iCarousel的subView。我可以通过以下命令获得当前的索引如何在每次滚动轮播时更新label.text中的索引。在这种方法中,我必须编写更新标签的代码。
我在我的应用程序中使用了惊人的iCarousel库。但我正面临着一个问题。我使用此代码将数据填充到旋转木马中。- (NSUInteger)numberOfItemsInCarousel:(iCarousel *)carousel //return the total number of items inthe carousel}
- (UIView *)carousel:(iCarousel *)carousel viewForItemAtIndex