Devices and methods for identifying user interface objects based on view hierarchy
First Claim
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.
1 Assignment
0 Petitions
Accused Products
Abstract
A method includes displaying a user interface of an application on a device'"'"'s touch-sensitive display. The user interface includes a plurality of regions, including a respective region at a respective hierarchy level. The respective region has two or more child regions at a hierarchy level below the respective hierarchy level. The method includes detecting a first contact at a location that corresponds to the respective region and that does not correspond to any of the two or more child regions. When the application is configured to process the first contact, not in conjunction with the respective region, but in conjunction with at least one child region of the two or more child regions, the method includes identifying a respective child region in accordance with positions of the child regions relative to the location, and processing the first contact in conjunction with the identified respective child region using the application.
-
Citations
24 Claims
-
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 Dependent Claims (2, 3, 4, 5, 6, 19, 20)
-
7. An electronic device comprising a touch-sensitive display, one or more processors, and memory storing one or more programs for execution by the one or more processors, the one or more programs including instructions for:
-
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 Dependent Claims (8, 9, 10, 11, 12, 21, 22)
-
-
13. A non-transitory computer readable storage medium storing one or more programs for execution by one or more processors in an electronic device with a touch-sensitive display, the one or more programs including instructions for:
-
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 Dependent Claims (14, 15, 16, 17, 18, 23, 24)
-
Specification