This code works fine on a physical iPhone 6, but on iOS simulator the MPVolumeView doesn't show.
- (void)setUpVolumeView
{
CGRect sliderRect = CGRectMake(20, 400, 300, 20);
self.myVolumeView = [[MPVolumeView alloc] initWithFrame:sliderRect];
[self.view addSubview: self.myVolumeView];
}
self
is in this case a ViewController.
Anyone know why this happens?