Created
June 12, 2009 09:56
-
-
Save pointcom/128552 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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