dowilcox
dowilcox

Reputation: 23

Open RSS feed link from uitableviewcell in safari instead of a new viewcontroller

I am using this http://imthi.com/blog/programming/iphone-rss-reader-application-with-source-code.php as a start for my rss reader in my app for loading news. I am trying to get it when you select a cell row it opens the link in safari instead of another viewcontroller. I am still learning how to develop for iPhone. This is what opens the new view which I want to open in safari, it is probably simple but since Im new to this I can't figure it out.

- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
[[self appDelegate] setCurrentlySelectedBlogItem:[[[self rssParser]rssItems]objectAtIndex:indexPath.row]];
[self.appDelegate loadNewsDetails];

}

Thanks for help in advance.

Upvotes: 1

Views: 588

Answers (1)

Aaron Saunders
Aaron Saunders

Reputation: 33345

[[UIApplication sharedApplication] openURL:[NSURL URLWithString: @"THE RSS URL"]];

Upvotes: 1

Related Questions