MPVolumeView *volumeView = [[[MPVolumeView alloc] initWithFrame:CGRectMake(0, 5, 150, 0)] autorelease];
[volumeView sizeToFit];
[self.view addSubview:volumeView];
How to show volume control
iPhone SDK Tips & Tricks
Labels:
iphone SDK