objective c - How to implement Auto sliding iCarousel in iOS? -



objective c - How to implement Auto sliding iCarousel in iOS? -

i have implemented basic slider using icarousel ios library dont know how create auto slider instead of manual swipe sliding.

here sample project code pls help me

code

when searched in google got link,but didnt understand

https://github.com/nicklockwood/icarousel/issues/84

looking @ github link, assume want autoscroll item upon view.

you have defined function

- (void)scrolltoitematindex:(nsinteger)index animated:(bool)animated

however isn't part of icarousel delegate, defined part of class, hence need phone call it. putting in viewdidappear seem appropriate if wanted auto scroll particular index when view controller presented user. add together method below.

- (void)viewdidappear:(bool)animated { [super viewdidappear:animated]; // index of 3 chosen illustration nsinteger chosenindex = 3; [self.carousel scrolltoitematindex:chosenindex animated:yes]; }

ios objective-c uiimageview slider ios8

Comments

Popular posts from this blog

formatting - SAS SQL Datepart function returning odd values -

c++ - Apple Mach-O Linker Error(Duplicate Symbols For Architecture armv7) -

php - Yii 2: Unable to find a class into the extension 'yii2-admin' -