Sunday, 15 January 2012

iphone - Display current index of iCarousel in a label which is not a subView in ICarousel -



iphone - Display current index of iCarousel in a label which is not a subView in ICarousel -

i using icarousel in application,i need current index of icarousel , display index in label(subview of self.view) not subview of icarousel. able current index with

int index=icarousel.currentindex;

how can update index in label.text every time when carousel scrolled. in method have write code update label.

whenever scroll next delegate called, can update label here

- (void)carouselcurrentitemindexupdated:(icarousel *)carousel1 { int index=carousel1.currentindex; yourlabel.text = [nsstring stringwithformat:@"%d",index]; }

iphone ios uiview uiscrollview

No comments:

Post a Comment