I have a UIPageViewController that controls several UIViewControllers. My app transitions from a page to another page when user takes certain actions such as clicking a button. I don't want users to be able to transition to a page by touching and dragging a page with a finger. Is that possible? How can I accomplish that?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Added EnableScroll method to TDPFUIPageViewController. download from [code] section.
Now you can call this method in onFormShow Event to disable manually scrolling.
Thanks! I got the latest code bu build fails at line 318 in DPF.iOS.UIPageViewController. Should EnableScroll() method be enclosed in {$IFDEF iOS} conditional?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
It seems that this fix works only if the transition style is tsPageCurl. If the transition style is tsScroll, it is still possible to transition the pages by gesturing. Will appreciate if you have another look at it. Thanks!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have a UIPageViewController that controls several UIViewControllers. My app transitions from a page to another page when user takes certain actions such as clicking a button. I don't want users to be able to transition to a page by touching and dragging a page with a finger. Is that possible? How can I accomplish that?
Hi Kaarigar
Added EnableScroll method to TDPFUIPageViewController. download from [code] section.
Now you can call this method in onFormShow Event to disable manually scrolling.
regards
Related
Code: code
Last edit: Babak Yaghoobi 2013-10-15
Thanks! I got the latest code bu build fails at line 318 in DPF.iOS.UIPageViewController. Should EnableScroll() method be enclosed in {$IFDEF iOS} conditional?
Hi Kaarigar
Yes, {$IFDEF iOS} needed.
Fixed [code]
Regards
Related
Code: code
It seems that this fix works only if the transition style is tsPageCurl. If the transition style is tsScroll, it is still possible to transition the pages by gesturing. Will appreciate if you have another look at it. Thanks!
Hi Kaarigar
Thank you for feedback,
Fixed.
Download last source [code]
Regards
Related
Code: code