How-To: Show/sync volume control in iPhone SDK
Dec.09, 2008 in
Development, Tech, iPhone Development, iphone
Developing for the iPhone, we wanted to show a volume control that sync’ed with the user’s volume control buttons on the side of the phone. It turns out, the best way to do this is to show the volume control using the MPVolumeView class (part of the MediaPlayer framework).
Here is some example code from our app:
MPVolumeView *volumeView = [[[MPVolumeView alloc] initWithFrame:
CGRectMake(0, 0, 215, 22)] autorelease];
volumeView.center = CGPointMake(150,375);
[volumeView sizeToFit];
[self.view addSubview:volumeView];

February 19th, 2009 at 1:33 am
How-To: Show/sync volume control in iPhone SDK…
You’ve been kicked (a good thing) – Trackback from iPhoneKicks.com – iPhone SDK links, community driven…
August 27th, 2009 at 3:44 pm
what a great tip. Thanks.