I'm trying to make an application that uses the event's when the volume up/down buttons are pressed. I'm using the event like this:
[[NSNotificationCenter defaultCenter] addObserver:self
selector:@selector(volumeChanged:)
name:@"AVSystemController_SystemVolumeDidChangeNotification"
object:nil];
when one of the volume button is pressed, the function "volumeChanged:" is called.
my problem is that when one of the volume buttons is pressed, I also get the default notification that shows the current volume bar status. I want to hide this message, so nothing will appear when I press the volume buttons. is anyone know how to do so?
p.s. I don't care about the volume itself. all I care about is the buttons events and the message that pops out when one of them is pressed.
thanks.