iPhone SDK 3 Programming : XML Processing - An RSS Reader Application
Published 2 min readBy Programming4us Editorial Team
In this section, we present a working
iPhone application based on the code developed so far. The application
will present the contents of an RSS feed to the user in a scrollable
table view. The complete application can be found in the RSS Reader project in the source downloads.
Listing 1 shows the application delegate declaration and definition. The application delegate uses an instance of the class XORSSFeedNebraska to retrieve the XML document and parse it to generate the items.
Example 1. The RSS reader application delegate declaration and definition.
The delegate's applicationDidFinishLaunching: method creates a window and the table view controller. It then asks the instance of XORSSFeedNebraska to fetch the XML and parse it by calling the fetchAbsconders method. The table view controller's declaration and definition are shown in Listing 2.
Example 2. The RSS reader table controller declaration and definition.