Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1615
Interactive Gauge inside a gridview
posted

Is it possible to configure an interactive linear gauge inside a grid view cell ?

Parents
No Data
Reply
  • 40030
    Suggested Answer
    Offline posted

    Absolutely. 

    I've attached a sample to demonstrate it. 

    The trick is that you have to require one gesture to fail to allow the other to begin. 

    This can be done via the following like of code:

    [self.gridView.panGestureRecognizer requireGestureRecognizerToFail:_pan];

    Basically, it's saying that grid's scrolling gesture should only occur if the long press gesture we've attached to our gauge fails. 

    Hope this helps, 

    -SteveZ

    LinearGaugeInGridView.zip
Children