I am doing an app which take pictures and uploads to server. I am using custom camera overlay, I am showing it using
[self presentModalViewController:self.picker animated:NO];
I want to capture picture on pressing volume key up also. I tried this code but no benefit
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(takePicture:)name:@"AVSystemController_SystemVolumeDidChangeNotification" object:nil];
Kindly help me. Thanks in advance.