Dispatches the specified event to its views.
- iOS 2.0+
- Mac Catalyst 13.0+
- tvOS 9.0+
The event to dispatch.
UIApplication object calls this method to dispatch events to the window. Window objects dispatch touch events to the view in which the touch occurred, and dispatch other types of events to the most appropriate target object. You can call this method as needed in your app to dispatch custom events that you create. For example, you might call this method to dispatch a custom event to the window’s responder chain.