MPVolumeView is not visible on the view

Posted by Faiz on Stack Overflow See other posts from Stack Overflow or by Faiz
Published on 2010-05-18T16:02:06Z Indexed on 2010/05/18 16:10 UTC
Read the original article Hit count: 311

Filed under:

Hi everybody,

I am using MPVolumeView in an application to control the volume of a audio track. I have used following code. but volume view is not visible on the view. Anybody has faced the same problem??

MPVolumeView *myVolume = [[MPVolumeView alloc] initWithFrame:CGRectMake(10, 10, 300, 40)];
[myVolume sizeToFit];
[self.view addSubview:myVolume];
[myVolume release];

any solution?? Thanx in advance.

© Stack Overflow or respective owner

Related posts about iphone