You can get the current image index in the delegate method below
- (void)carouselCurrentItemIndexUpdated:(iCarousel *)carousel1
Once your images have fully loaded, call
[self carouselCurrentItemIndexUpdated:carousel]
Here is the code:
In your DidLoad view, call the method as shown below, here carousel is in the iCarsouel instance.
- (void)viewDidLoad { [super viewDidLoad]; [self carouselCurrentItemIndexUpdated:carousel]; } - (void)carouselCurrentItemIndexUpdated:(iCarousel *)carousel1 { self.currentItem=carousel1.currentItemIndex; NSLog(@"currentItem update== %i",self.currentItem); }
Hope this helps ...
source share