ios - Hide device Volume HUD view while adjusitng volume with MPVolumeView slider -
i implementing video player mpmovieplayer in ipad application, used mpvolumeview volume control. problem when scroll volume view adjust volume showing device's volume hud overlay in screenshot below.
how can disable system volume indicator hud? code :
@property (weak, nonatomic) iboutlet mpvolumeview *playbackmpvolumeview; //customizing controller - (void)customizevolumecontroller { _playbackmpvolumeview.showsroutebutton = yes; _playbackmpvolumeview.showsvolumeslider = yes; [_playbackmpvolumeview setvolumethumbimage:[uiimage imagenamed:@"volume_slider_thumb.png"] forstate:uicontrolstatenormal]; }
swift 3
let volumeview = mpvolumeview(frame: .zero) view.addsubview(volumeview)
Comments
Post a Comment