SwipeView
SwipeView copied to clipboard
programaticly go to a specific page in swipeview
Hi, I have a tableview, from which the click on cells should go to the view controller with the swipe view and show the corresponding page based on its index. I was wondering if there is a way to do that?
The SwipeView Readme says to call
- (void)scrollToItemAtIndex:(NSInteger)index duration:(NSTimeInterval)duration
or
- (void)scrollToPage:(NSInteger)page duration:(NSTimeInterval)duration
on your swipe view. This should achieve the effect you're looking for.
@Dev- I think what @Overlord21 is looking for is a way to get the page of an itemView by providing its index, to then scroll to the correct page. In fact I'm also interested in this. I'll digg around a bit and post any updates here.
- (void)scrollToPage:(NSInteger)page duration:(NSTimeInterval)duration