Menu

Swipe..

Gordon
2014-01-27
2014-01-27
  • Gordon

    Gordon - 2014-01-27

    I feel like Ive climbed a mountain learning the IOS world, but been fun and worth it..
    My question this time is..
    I have a navcontroller that i move by push and pop.. I assign a frame to each page at startup.. Never change it.. works great.. Also, ive manually placed a back button on each page.. also works great..

    But, the issue is , the user can swipe the phone and go back too.. when this happens, the code that is normally called by the back button of course isnt being called..

    Im confused about where all this happens..

    There is OnShowNavController..on the parent..I think that is called everytime a new page is shown? Not sure..

    Then, on each page there are some events.. OnFormChanged.. Not sure if that means when the page is changed? And if so, should i use the event on the page that Im leaving or the one Im going to? or either?

    Or , do I use the On gesture, to look for a swipe?

    Can you push me in the right direction?

    Gordon

     

    Last edit: Gordon 2014-01-27
  • Gordon

    Gordon - 2014-01-27

    Also, is there a way to turn off the swipe left on a page of a navcontoller?
    I cant seem to figure that out..

    I would love for someone to make a gesture demo.. I dont think there is one..

     

    Last edit: Gordon 2014-01-27
  • Babak Yaghoobi

    Babak Yaghoobi - 2014-01-27

    Hi Gordon

    1) OnShowNavController will be call when you call push or pop or click back button. In other words, it will be call when navigator current page is changed.

    2) OnFormChanged or OnFrameChanged, when it is called the Frame/Form value is changed to nil or other values.

    3) OnGesture is a FMX event and not a DPF controls event.

    Where this swipe functio is called ? We do not have such a functionality on navigator !
    or maybe send me a simple project for testing.

    Regards

     
  • Gordon

    Gordon - 2014-01-27

    Great.. Thank you!
    I think you are saying that at this moment, there is no way to turn off swiping?

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.