It may not working for you because you are calling beginReceivingRemoteControlEvents
in viewWillAppear
instead of viewDidAppear
. Check out the documentaion -
- (void)viewDidAppear:(BOOL)animated {
[super viewDidAppear:animated];
// Turn on remote control event delivery
[[UIApplication sharedApplication] beginReceivingRemoteControlEvents];
}