I know the question has been asked in the exact same way here cannot subscript a value of type [MPMediaItem] , but I don´t get his solution working.
cell.textLabel!.text = allSongs![indexPath.row]
is what i´m trying.
allSongs is declared like this var allSongs = [MPMediaItem]?()