User Tools

Site Tools


iphone-programming

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
iphone-programming [2010/02/23 17:26]
suman
iphone-programming [2010/02/23 21:19] (current)
mgriepentrog
Line 2: Line 2:
  
 By the end of this project, you should know how to: By the end of this project, you should know how to:
--Create and populate a UITableView +  * Create and populate a UITableView 
--Parse XML from an RSS feed +  ​* ​Parse XML from an RSS feed 
--Use a UIWebView +  ​* ​Use a UIWebView 
--Pass information between views+  ​* ​Pass information between views
  
  
 **Extra credit:** **Extra credit:**
--Find an RSS feed with entries that span across multiple days. Have each day separated into its own section and sort those sections with the most recent at the top +  * Find an RSS feed with entries that span across multiple days. Have each day separated into its own section and sort those sections with the most recent at the top 
--Give the user the option to email a link of the article to someone. +  ​* ​Give the user the option to email a link of the article to someone. 
--Add forward and back buttons that control the UIWebView+  ​* ​Add forward and back buttons that control the UIWebView
  
-Library Usage:  +**Library Usage:**  
-RSSParser *rssParser = [[RSSParser alloc] initWithRSSFeed:​@"​http://​www.engadget.com/​rss.xml"​];​+<​code>​RSSParser *rssParser = [[RSSParser alloc] initWithRSSFeed:​@"​http://​www.engadget.com/​rss.xml"​];​</​code>​
  
 This will return nil if it is unable to download the file (i.e. no network connection). You can then access an array of entries by calling rssParser.articleList. If articleList is nil, then there was an error parsing the feed. **Your code must be able to handle both failures.** If you plan on using the pubDate property, make sure it isn't nil first. Most RSS feeds conform to one date format and you find that your feed is different, you must modify the library code. A message will be logged to the console if the date value for that article is set to nil. This will return nil if it is unable to download the file (i.e. no network connection). You can then access an array of entries by calling rssParser.articleList. If articleList is nil, then there was an error parsing the feed. **Your code must be able to handle both failures.** If you plan on using the pubDate property, make sure it isn't nil first. Most RSS feeds conform to one date format and you find that your feed is different, you must modify the library code. A message will be logged to the console if the date value for that article is set to nil.
 +
 +**Resources:​**
 +  * [[http://​www.cs.wisc.edu/​~suman/​courses/​638/​s10/​handouts/​iPhone-CS638.pdf | iPhone Presentation]] (Coming Soon)
 +  * [[http://​www.cs.wisc.edu/​~suman/​courses/​638/​s10/​handouts/​iPhone-Examples.zip | iPhone Examples]] (Coming Soon)
iphone-programming.txt · Last modified: 2010/02/23 21:19 by mgriepentrog