Original Question
I have a MPVolumeView
added to a custom view as
_airplayButton = [[MPVolumeView alloc] init];
[_airplayButton setShowsVolumeSlider:NO];
[self addSubview:_airplayButton];
I don't have a real device to test but when on iOS simulator the button doesn't appear. I have more than one Apple TV connected on my network. Is it because the simulator doesn't support AirPlay?
I tried adding external display on the simulator and still the view seems to be hidden.
UPDATE
I tried adding the external display and on the control centre AirPlay wasn't activated. Is there something else I need to do to get AirPlay activated on simulator other than adding an external display?