SwipeView icon indicating copy to clipboard operation
SwipeView copied to clipboard

programaticly go to a specific page in swipeview

Open CuriousDev21 opened this issue 9 years ago • 2 comments

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?

CuriousDev21 avatar Apr 06 '15 14:04 CuriousDev21

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- avatar Apr 16 '15 15:04 Dev-

@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

vicc avatar Apr 17 '15 03:04 vicc