Skip to content

Instantly share code, notes, and snippets.

@zapsleep
Created December 13, 2012 07:47
Show Gist options
  • Save zapsleep/4274836 to your computer and use it in GitHub Desktop.
Save zapsleep/4274836 to your computer and use it in GitHub Desktop.
Obtain a reference to AirPlay button
- (UIButton *)getButtonFromVolumeView:(MPVolumeView *)volumeView {
UIButton *button;
for (button in volumeView.subviews) {
if ([button isKindOfClass:[UIButton class]]) {
break;
}
return button;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment