Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

MPVolumeView change size of Airplay icon

I have an MPVolumeView on one of my views, which comes up with an Airplay icon when there are other output sources available. That's all fine, but the icon is tiny, no matter how big I set the frame for MPVolumeView it doesn't get any bigger.

Anyone know how to increase the size of the airplay icon?

like image 306
rustyshelf Avatar asked Feb 08 '11 01:02

rustyshelf


1 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%
like image 70
Kristofer Sommestad Avatar answered Nov 15 '22 12:11

Kristofer Sommestad