摘要 |
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. |