4 Replies
      Latest reply on Jul 8, 2016 8:10 PM by chilcuttapps
      fbartolom Level 1 Level 1 (0 points)

        I am trying to port my apps to iOS 10, including the visualization of a MPMediaPickerController by means of the following code:

        @IBAction func handleBrowserTapped(_ sender: AnyObject){
                let pickerController = MPMediaPickerController(mediaTypes: .music)
                pickerController.prompt = NSLocalizedString("Add pieces to queue", comment:"");
                pickerController.allowsPickingMultipleItems=true;
                pickerController.delegate=MPMusicPlayerControllerSingleton.sharedController();
                self.present(pickerController, animated:true, completion:{
                    MPMusicPlayerControllerSingleton.sharedController().storeQueue()
                })
            }
        
        

        Yet all that appears on the screen is a totally while screen, differently from the previous iOS versions. The block is called and so the picker presentation seems to succeed. What could be the problem?