Skip to content

Instantly share code, notes, and snippets.

@pointcom
Created June 12, 2009 09:56
Show Gist options
  • Save pointcom/128552 to your computer and use it in GitHub Desktop.
Save pointcom/128552 to your computer and use it in GitHub Desktop.
// Example of MPVolume which doesn't work on SDK 3.0
MPVolumeView *volumeView = [[MPVolumeView alloc] init];
[volumeView sizeToFit];
[self.view addSubview:volumeView];
[volumeView release];
// Example of MPVolume which doesn't work neither on SDK 3.0
MPVolumeView *volumeView = [[MPVolumeView alloc] init];
[volumeView sizeToFit];
UIView *volume = [[UIView alloc] init];
for (UIView *view in [volumeView subviews]){
if ([[[view class] description] isEqualToString:@"MPVolumeSlider"]) {
volume = view;
}
}
[self.view addSubview:volume];
[volume release];
[volumeView release];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment