×

Devices and methods for identifying user interface objects based on view hierarchy

  • US 10,216,408 B2
  • Filed: 09/28/2010
  • Issued: 02/26/2019
  • Est. Priority Date: 06/14/2010
  • Status: Active Grant
First Claim
Patent Images

1. A method, comprising:

  • at an electronic device with a touch-sensitive display;

    displaying on the touch-sensitive display a user interface of an application, the user interface including a plurality of views and a plurality of activatable user interface objects in the plurality of views;

    detecting on the touch-sensitive display a first contact at a first location that corresponds to the displayed user interface;

    in response to detecting the first contact at the first location;

    identifying a hit view based on the first location, wherein the hit view is a lowest view in a view hierarchy of the plurality of views that (A) corresponds to the first location and (B) includes a first set of one or more gesture recognizers; and

    determining whether the application is configured to process the first contact with the hit view using at least one of the first set of gesture recognizers;

    in accordance with a determination that the application is configured to process the first contact using at least one of the first set of gesture recognizers of the hit view, processing the first contact using at least one of the first set of gesture recognizers of the hit view; and

    ,in accordance with determining that the application is not configured to process the first contact using any of the first set of gesture recognizers of the hit view and that the application is configured to process the first contact using a respective gesture recognizer of a child view of the hit view, processing the first contact using the respective gesture recognizer of the child view of the hit view, wherein;

    the hit view contains the child view, and the child view does not correspond to the first location and is at a hierarchy level lower than a hierarchy level of the hit view in the view hierarchy; and

    the respective gesture recognizer of the child view is distinct from the gesture recognizers in the first set of gesture recognizers of the hit view.

View all claims
  • 1 Assignment
Timeline View
Assignment View
    ×
    ×