When I connect the iphone to a dock my app display the message: “Conector dock”. I want to detect when the phone is connected with other device and hide the MPVolumeView to avoid those messages.
I am using MPVolumeView as the usual:
MPVolumeView *myVolume = [[MPVolumeView alloc] initWithFrame:CGRectMake(10, 435, 300, 0)];
[myVolume sizeToFit];
[self.view addSubview:myVolume];
[myVolume release];
Could anyone help me?
I did that by adding the observers that follow: