问题
I've got an instance of AVPlayer which plays some media, but I don't want user to be able to stream it via AirPlay. So I set allowsExternalPlayback property of AVPlayer to NO. However it doesn't seem to affect AirPlay button in control center, so it stays visible. Is there any way to hide the button?
来源:https://stackoverflow.com/questions/30755169/avplayer-airplay-button-shows-up-in-control-center-even-though-allowsexternalpl