Is it possibe to put an MPVolumeView in a UIAlertView?
I have tried to put it inside of it, but it does not display. It may be the sizeToFit
or initWithFrame:
part?
Is there a way of testing if the MPVolumeView
is actually being created?
Here's the code I initialize both the UIAlertView
and MPVolumeView
with:
UIAlertView *volumeAlert = [[UIAlertView alloc] initWithTitle:@"Volume" message:@"" delegate:self cancelButtonTitle:@"OK" otherButtonTitles:nil];
MPVolumeView *volumeView = [[MPVolumeView alloc] initWithFrame:volumeAlert.bounds];
[volumeAlert addSubview:volumeView];
[volumeAlert sizeToFit];
[volumeAlert show];
[volumeAlert release];
[volumeView release];