how can I ignore left or right slide movement in a UIViewController. I am using ViewDeck and the center vc is a tabbarviewcontroller, there are two view controllers in that tabbarviewcontroller. In first vc of the tabbarvc, users can slide right to show the left vc but in the second vc, users can't do the same thing. so I want to ignore the slide movement in the second vc. Thank you in advance.
Asked
Active
Viewed 151 times
-1
-
2Can you please add a little more detail. There is no "slide movements" on UIViewController without any other context. – Sonny Saluja Jun 04 '13 at 03:08
-
By any chance are you looking for vertical-only scrolling in a UIScrollView? – morningstar Jun 04 '13 at 03:19
-
@SanjitSaluja Hi,I am using [ViewDeck](https://github.com/Inferis/ViewDeck/) and the center vc is a tabbarviewcontroller, there are two view controllers in that tabbarviewcontroller. In first vc of the tabbarvc, users can slide right to show the left vc but in the second vc, users can't do the same thing. so I want to ignore the slide movement in the second vc. – jxdwinter Jun 04 '13 at 03:20
1 Answers
2
I found the solution. Using delegation and
_deckController.panningMode = IIViewDeckNoPanning;
This works good!

jxdwinter
- 2,339
- 6
- 36
- 56