This code works fine on the physical iPhone 6, but on the iOS simulator, MPVolumeView is not displayed.
- (void)setUpVolumeView { CGRect sliderRect = CGRectMake(20, 400, 300, 20); self.myVolumeView = [[MPVolumeView alloc] initWithFrame:sliderRect]; [self.view addSubview: self.myVolumeView]; }
self in this case is a ViewController.
Does anyone know why this is happening?
source share