iOS Development Discussion on developing apps for the iOS platform.

How to get the pubDate tag in a RSS feed


Post Reply New Thread Subscribe

 
Thread Tools
himan

 
Member Since: Mar 30, 2011
Posts: 1
himan is on a distinguished road

himan is offline
Hi, i want to read a RSS feeds with my iPhone application. Now, i can read all tags without problems, but when i try to read de pubdate tag my variable is null.

NSString *title = [item objectForKey:@"title"];
titleText.text=title;
NSString *description = [item objectForKey:@"description"];
descriptionText.text=description;

The title and description are OK, but when i try this:

NSDate *date = [item objectForKey:@"pubDate"];
NSDateFormatter *dateFormat = [[NSDateFormatter alloc] init];
[dateFormat setDateFormat:@"EEEE MMMM d, YYYY"];
NSString *dateString = [dateFormat stringFromDate:date];
dateText.text=dateString;

the TextView dateText is empty. Somebody can help me? Thanks!
QUOTE Thanks

Post Reply New Thread Subscribe


« XCODE SKD 4.2 to 4.3 upgrade? | Make iPad 2 apps with windows vista? »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
Iweb Help with RSS Feed Blakemedia Web Design and Hosting 0 03-07-2011 02:21 PM
Spam in the RSS feed for Mac-Forums the8thark Community Suggestions and Feedback 5 06-13-2010 02:23 PM
iWeb RSS feed not working mbywaters OS X - Apps and Games 0 01-14-2010 12:07 PM
iweb, blog, and rss feed..something not working cdnphotog Web Design and Hosting 1 02-14-2008 10:24 PM
RSS Feed Question rs2sensen Web Design and Hosting 1 05-02-2006 07:58 PM

All times are GMT -4. The time now is 09:44 AM.

Powered by vBulletin
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?