MPVolumeView will resize Airplay icon

I have an MPVolumeView on one of my views in which the Airplay icon appears when there are other output sources available. All this is fine, but the icon is tiny, no matter how I set the frame for MPVolumeView, it doesn't get bigger.

Does anyone know how to increase the size of the ether icon?

+5
source share
2 answers

I did this to just show the icon and increase its size:

MPVolumeView *volumeView = [[[MPVolumeView alloc] initWithFrame:CGRectMake(255, 12, 30, 25)] autorelease];
volumeView.showsVolumeSlider = NO;
volumeView.showsRouteButton = YES;
volumeView.transform = CGAffineTransformMakeScale(1.5, 1.5); // increase size by 50%
+16
source

, , , - . , , , , ( contentMode , )

, , , , .

0

All Articles