MPVolumeView, avoid displaying "No Volume Available"
Posted
by Emil
on Stack Overflow
See other posts from Stack Overflow
or by Emil
Published on 2010-05-13T15:10:11Z
Indexed on
2010/05/13
15:14 UTC
Read the original article
Hit count: 864
Hey.
I have a project with a MPVolumeView
in it. It is set up, and it works, the only thing is that when I mute the device, the text "No Volume Available"
comes up instead of the MPVolumeView
.
The volumeView is initialized in the view volumeBounds
, with that view's bounds.
MPVolumeView *volumeView = [[[MPVolumeView alloc] initWithFrame:volumeBounds.bounds] autorelease];
[volumeBounds addSubview:volumeView];
[volumeView sizeToFit];
Thanks :)
© Stack Overflow or respective owner