I am trying to create an application that uses this event when I press the volume up / down buttons. I use the event as follows:
[[NSNotificationCenter defaultCenter] addObserver:self
selector:@selector(volumeChanged:)
name:@"AVSystemController_SystemVolumeDidChangeNotification"
object:nil];
when one of the volume buttons is pressed, the "VolumeChanged:" function is called.
My problem is that when I press one of the volume buttons, I also get a default notification that shows the current level of bars. I want to hide this message, so when you press the volume buttons nothing will appear. Does anyone know how to do this?
ps I do not care about the volume itself. all i care about is the button events and the message that appears when one of them is pressed.
thank.
