I am thinking of putting UITableView on it’s side to make it a carousel, but I’d like to limit the number of item that gets scrolled for every swipe. Think about the screenshot carousel in Apple App Store, when you swipe, it only scrolls 1 item at a time. Is this doable? Is UITableView the right control to use?
Share
You can set
pagingEnabledtoYES, that way the UIScrollView (or UITableView, as it is a subclass of an UIScrollView) will stop on multiples of the scroll view’s bounds when the user scrolls. Take a look here http://developer.apple.com/library/ios/documentation/uikit/reference/UIScrollView_Class/Reference/UIScrollView.html#//apple_ref/occ/instp/UIScrollView/pagingEnabled