5 Replies
      Latest reply on Sep 11, 2015 2:28 PM by blakeseely
      howardck Level 1 Level 1 (0 points)

        What's the difference? I even looked at the video clips in the tv HIG ("Remote and Interactions::Gestures") and can't tell what distinction they're trying to make.

        • Re: clicks vs. taps
          TidBits Apple Staff Apple Staff (1,645 points)

          A tap is a UITapGesture, whereas a click is when the user physically clicks down the trackpad causing a select event.

           

          You have to be careful with taps because of the tendency for users to rest their finger on the trackpad... you might end up interpreting inadvertent events if not applied in the right context.

          • Re: clicks vs. taps
            blakeseely Apple Staff Apple Staff (135 points)

            The new remote has a touch surface with a physical button under it. Touches are exactly what you'd expect - fingers on the touch surface. For tvOS, these are represented by an "indirect" touch type - as opposed to a phone or pad where the touches are directly on the screen. UIGestureRecognizer and its subclasses recognize these touches when you set the allowedTouchType to recognize these indirect touches.

             

            Physical button clicks are represented by the UIPress classes and recognized by gesture recongizers when you set the allowedPressTypes. Beyond the select button under the touch surface, you can also recognize the Play/Pause button, and the Menu button using UIPress.

             

            The combination of these two things allow you to set up recognition for either type of gesture - a tap on the touch surface, or a click of the physical button.

              • Re: clicks vs. taps
                howardck Level 1 Level 1 (0 points)

                "The new remote has a touch surface with a physical button under it."

                 

                The whole surface is a button (essentially) and takes a click?? Wow, the things you learn! :-) I hadn't picked that up from the docs. Fabulous, dahling, fabulous.

                1 of 1 people found this helpful
                • Re: clicks vs. taps
                  Rhapsodus Level 1 Level 1 (10 points)

                  Is there any information on the coordinate space of the touch surface?

                    • Re: clicks vs. taps
                      blakeseely Apple Staff Apple Staff (135 points)

                      Touches are always centered on the currently focused view and move from there. There is not currently any API that allows you to see where on the touch surface the finger is. If you'd like to see that added, please file a bug at bugreporter.apple.com and let us know what kind of features you'd use that information for.