Make UIViewController a singleton?
问题 During the use of my app, the user should be able to start, stop, forward background music. (Across several UIViewControllers). For this, I made my MusicPlayer a singleton ( NSObject ). If I create the controls in every view for itself it works, but what I want is basically one view which handles the music player class and is present all the time . The user also should be able to "hide" and "show" the view by swiping it to the left or to the right. So if it is hidden and I change my view