I have the following code, but it doesn't display the route button.
MPVolumeView *volumeView = [[MPVolumeView alloc] initWithFrame:CGRectZero];
volumeView.showsRouteButton = YES;
volumeView.showsVolumeSlider = NO;
[volumeView sizeToFit];
[self.view addSubview:volumeView];
[volumeView release];
In the documentation I read:
The route button is visible by default when there is more than one audio output route available.
I only have one audio output, so the button doesn't show. Is there any way to simulate multiple audio outputs so that I can test this button?