How to change volume programmatically on iOS 11.4
Before, I was setting sound volume programmatically using this approach: MPVolumeView *volumeView = [[MPVolumeView alloc] init]; UISlider *volumeViewSlider = nil; for (UIView *view in [volumeView subviews]) { if ([view.class.description isEqualToString:@"MPVolumeSlider"]) { volumeViewSlider = (UISlider *)view; break; } } [volumeViewSlider setValue:0.5 animated:YES]; [volumeViewSlider sendActionsForControlEvents:UIControlEventTouchUpInside]; Till iOS 11.4 it was working well (even on iOS 11.3), but on iOS 11.4 it doesn't. Volume value remains unchanged. Can someone help with this issue? Thanks.