摘要:
A software application includes a plurality of views and an application state. The method includes displaying one or more views, where a respective view includes a respective gesture recognizer having a corresponding delegate to the respective gesture recognizer. The method includes detecting one or more events and processing a respective event of the one or more events using the respective gesture recognizer. The processing of the respective event includes processing the respective event at the respective gesture recognizer in accordance with a respective gesture definition corresponding to the respective gesture recognizer, executing the corresponding delegate to determine one or more values, and conditionally sending information corresponding to the respective event to the software application in accordance with the one or more values determined by the delegate. The method includes executing the software application in accordance with information, received from the respective gesture recognizer.
摘要:
A method and apparatus of a device that converts a telephone number based on the location of a telephone is described. The device receives the telephone number, where telephone number is to be used to place a telephone call on the device. The device further determines if the telephone number is suitable to place the telephone call based on a content of the telephone number and a location of the device. If the telephone number is not suitable to place the telephone call, the device converts the telephone number to a telephone number suitable to be used to place the telephone call.
摘要:
A method includes: displaying a first 2-D array of a plurality of user interface components on the display in a portrait orientation; detecting rotation of the display from the portrait orientation to a landscape orientation with one or more accelerometers; and, in response to detecting the rotation: rotating the first 2-D array of the plurality of user interface components on the display about an axis that is normal to a front surface of the display; replacing the first 2-D array with a second 2-D array of the plurality of user interface components on the display after the rotation of the first 2-D array exceeds a predefined condition; and rotating the second 2-D array of the plurality of user interface components on the display until the second 2-D array of the plurality of user interface components is in the landscape orientation.
摘要:
A computer-program product may have instructions that, when executed, cause a processor to perform operations including managing execution of application functions that access data in a shared buffer; determining if a first instruction that is stored at a first memory location causes, upon execution, data to be read from or written to the shared buffer; and when it is determined that the first instruction causes data to be read from or written to the shared buffer, 1) identify one or more replacement instructions to execute in place of the first instruction; 2) store the one or more replacement instructions; and 3) replace the first instruction at the first memory location with a second instruction that, when executed, causes the stored one or more replacement instructions to be executed.
摘要:
A method executes software including a view hierarchy with a plurality of views which displays one or more views of the view hierarchy. The method executes software elements associated with a particular view, wherein each particular view includes event recognizers. Each event recognizer has an event definition based on sub-events, and an event handler that specifies an action for a target, and is configured to send the action to the target in response to an event recognition. The method detects a sequence of sub-events, and identifies one of the views of the view hierarchy as a hit view that establishes which views in the hierarchy are actively involved views. The method delivers a respective sub-event to event recognizers for each actively involved view, wherein each event recognizer for actively involved views in the view hierarchy processes the respective sub-event prior to processing a next sub-event in the sequence of sub-events.
摘要:
A method of executing program instructions may include receiving, in a processor, an instruction that causes the processor to read data from or write data to a portion of memory that is shared by one or more processes, at least one process of which manipulates data in a format that is different than a format of data in the shared portion of memory. The method may further include executing alternate instructions in place of the received instruction. The alternate instructions may effect transformation of data associated with the shared portion of memory from a first data format to a second data format.
摘要:
An electronic device executes one or more software elements. Each software element is associated with a particular view, which includes one or more event recognizers. Each event recognizer has one or more event definitions based on one or more sub-events, and an event handler. The event handler is configured to send an action to a target in response to the event recognizer detecting an event corresponding to a particular event definition. The electronic device detects a sequence of sub-events, and identifies actively involved views. The electronic device delivers a respective sub-event to event recognizers for actively involved views. At least one event recognizer for actively involved views has a plurality of event definitions, one of which is selected in accordance with an internal state of the electronic device. The at least one event recognizer processes the respective sub-event in accordance with the selected event definition.
摘要:
Methods and systems for implementing gestures with sensing devices are disclosed. More particularly, methods and systems related to gesturing with multipoint sensing devices are disclosed.
摘要:
Systems, methods, and computer readable media for dynamically setting an executing application's display buffer size are described. To ameliorate display device overscan operations, the size of an executing application's display buffer may be set based on the display device's extent and a display mode. In addition, contents of the executing application's display buffer may be operated on as they are moved to a frame buffer based on the display mode. In one mode, for example, display buffer contents may be scaled before being placed into the frame buffer. In another mode, a black border may be placed around display buffer contents as it is placed into the frame buffer. In yet another mode, display buffer contents may be copied into the frame buffer without further processing.
摘要:
A device detects a sequence of sub-events as part of a touch event associated with a view, determines that the sequence does not correspond to one or more predefined sequences of sub-events for the view associated with the touch event, and, in accordance with a determination that the sequence does not correspond to the one or more predefined sequences, sends a touch cancel event to the view associated with the touch event. Also disclosed is a device configured to detect a sequence of sub-events as part of a touch event associated with a view, determine that the sequence does not correspond to one or more predefined sequences of sub-events for the view associated with the touch event, and, in accordance with a determination that the sequence does not correspond to the one or more predefined sequences, cancel the touch event.