42416

ScrollDirection in iCarousel?

I Am using iCarousel framework. https://github.com/nicklockwood/iCarousel

<strong>There I want to find out the swipe direction of a view</strong>, because i am having next and previous actions, need to give for right and left scrolling.

Answer1:

If I understand your question correctly, you want to know when the user scrolled the carousel and to know in which direction did she scroll. If so, you should implement the method

- (void)carouselCurrentItemIndexDidChange:(iCarousel *)carousel;

and compare the new index with the previous (stored) value - if the new one is greater than before, the user scrolled right, if it's smaller - scroll left.

Recommend

  • Android Espresso error on button click
  • Android: Notification action to dismiss the notification
  • Removing multiple recurring text from pandas rows`
  • iOS6 JavaScript touchmove event pass through vertical scroll afterwards jQuery animate does not fire
  • Windows 8 Metro style ListView auto scroll
  • Is there a way to act before the scroll event?
  • how to calculate distance between two points in google maps?
  • Put percent labels next to legend instead of in the slice
  • HABTM associations in Rails : collecting and counting the categories of a model's children
  • Scrolling News Ticker Jquery - Issues
  • Pythons argparse default value doesn't work
  • Guava how to copy all files from one directory to another
  • Fully customized Python Help Usage
  • sweetalert2 inputoptions from file in select example
  • Switch to popup in python using selenium
  • how does System.Web.HttpRequest::PathInfo work?
  • Scala multiline string placeholder
  • Does Mobilefirst provide a provision to access web services directly?
  • Ionic 2 storage is not cleaning up on uninstall - Only for signed APK
  • preg_replace Double Spaces to tab (\\t) at the beginning of a line
  • Listbox within Listbox and scrolling trouble in Windows Phone 7 Silverlight
  • Disable Enter in editText android
  • Linq Objects Group By & Sum
  • Adding a button at the bottom of a table view
  • Exchange data b/w iOS devices using Bluetooth 4.0
  • Optimizing database types to compact database (SQLite)
  • RectangularRangeIndicator format like triangular using dojo
  • Cross-Platform Protobuf Serialization
  • How to check if every primary key value is being referenced as foreign key in another table
  • Updated Ionic CLI but shows previous version (Windows)
  • Cannot Parse HTML Data Using Android / JSOUP
  • Revoking OAuth Access Token Results in 404 Not Found
  • Buffer size for converting unsigned long to string
  • python regex in pyparsing
  • How get height of the a view with gone visibility and height defined as wrap_content in xml?
  • Getting Messege Twice Using IMvxMessenger
  • XCode 8, some methods disappeared ? ex: layoutAttributesClass() -> AnyClass
  • reshape alternating columns in less time and using less memory
  • Conditional In-Line CSS for IE and Others?
  • How to load view controller without button in storyboard?