iOS - UIEventTypeRemoteControl events not received
问题 I have this in the AppDelegate (didFinishLaunching): [[UIApplication sharedApplication] beginReceivingRemoteControlEvents]; I tried handling the events in the relevant view controllers but that was spotty (some view controllers would get the events and others wouldn't, even when they were first responders). I tried subclassing UIApplication. That didn't work. Now I'm trying to subclass UIWindow and do this (see the comments): - (void)sendEvent:(UIEvent *)event { if (event.type ==