I work on an audio app (using audio units).
One of the requirements is to be able to change the audio route from the UI (Earpiece, Speaker, Connected Bluetooth device etc.).
I use the MPVolumeView for this.
Recently I have a bug with the list of routes that are displayed in the action sheet that is opened when tapping the route button in the volume view.
I think that the problem appears only in iOS6, but not sure about that.
The result is random:
- sometimes it displays only iPhone
- sometimes it displays iPhone twice instead of iPhone and Speaker (in this case usually the icon near both 'iPHone' buttons is like it is a speaker - TV icon)
- sometimes it works good
- the Bluetooth is always displayed good
Some additional info:
The volume view is initiated only in Play&Record audio category.
The volume view is initiated and added to the screen only after the user taps a corresponding button on the screen. This button becomes available only after the category is switched to Play&Record (it is not immediate, so I set a listener to the route transitions and enable the button only after the route is REALLY changed).
Screenshots:
If anyone has experienced this problem then please share a solution.
Thank you.