MPMoviePlayerController hide volume slider

早过忘川 提交于 2019-12-13 08:45:40

问题


I was wondering if anyone knew of a way to hide the volume slider while playing a video in fullscreen mode but retaining the standard controls such as play/pause, previous/next etc

Thanks


回答1:


Just a suggestion, totally untested :)

for (UIView *view in [volumeSlider subviews]) {
      if ([[view isKindOfClass:[MPVolumeSlider class]]) {
        [view setHidden:YES];
  }
}


来源:https://stackoverflow.com/questions/12159735/mpmovieplayercontroller-hide-volume-slider

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!