TopSongs

Last Revision:
Version 5.2, 2017-03-23
Upgrade to iOS 10.2 SDK, replaced deprecated APIs, updated the NSAppTransportSecurity key value server domain.
(Full Revision History)
Build Requirements:
iOS 10.2 SDK or later
Runtime Requirements:
iOS 10.10 or later

This sample code demonstrates efficiently parsing and importing data from an XML RSS feed into Core Data. The XML parsing is done using libxml. The feed is from iTunes Top Songs and contains data about songs, artists, and categories. The application's data model has an entity for Song and for Category. Managed objects are inserted into a managed object context on a background thread, so the application remains responsive to the user while the import is taking place.