Show pubDate


#1

How can I go about having the date of each RSS item show under the title in the table view cells?


#2

Can anyone help with this?


#3

i know I need to set the pubDate element as the detailTextLabel but I’m having trouble figuring out how to get the element and then use it.


#4

I have added this to RSSItem.h and RSSChannel.h:

I have added this to RSSItem.m and RSSChannel.m:

else if ([elementName isEqual:@"pubDate"]) { currentString = [[NSMutableString alloc]init]; [self setDate:currentString]; }

I then added this to cellForRowAtIndexPath inListViewController.m:

The date is still not showing up in the cells.


#5

Have you NSDate *date declared in @interface method?