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: 869

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

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-13T18:21:35Z Indexed on 2010/05/13 18:24 UTC
Read the original article Hit count: 869

Filed under:
|
|
|

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

Related posts about iphone

Related posts about volume