I want to show 25 of the songs I have in my library. This is my code:
var allSongsArray: [MPMediaItem] = [] let songsQuery = MPMediaQuery.songsQuery() func numb
You should return allSongsArray.count and to avoid being returned empty cells use yourTableView.reloadData after you fill your allSongsArray.
allSongsArray.count
yourTableView.reloadData
allSongsArray