Invoking Safari in my app

Discussion in 'iOS Programming' started by insorior, Jun 15, 2010.

  1. insorior macrumors newbie

    Jun 15, 2010
    Hi everyone! I made a RSS reader, showing last actualities of one of my websites. Unfortunately, when I Tap an article, the app closes and safari opens, to read the article. I would like to invoke safari in order to keep my app opened, and to be able to go back with a simple button.
    I heard about UIWebView Class, but i'm french and I need help. So here are the files.
    Could someone tell me what I Precisally have to add in the files to succeed?
    Thanks alot

    //  RootViewController.h
    //  TAB RSS reader
    //  Created by Jason Terhorst on 7/28/08.
    //  Copyright AstoundingCookie, LLC 2008. All rights reserved.
    #import <UIKit/UIKit.h>
    @interface RootViewController : UITableViewController {
    	IBOutlet UITableView * newsTable;
    	UIActivityIndicatorView * activityIndicator;
    	CGSize cellSize;
    	NSXMLParser * rssParser;
    	NSMutableArray * stories;
    	// a temporary item; added to the "stories" array one at a time, and cleared for the next one
    	NSMutableDictionary * item;
    	// it parses through the document, from top to bottom...
    	// we collect and cache each sub-element value, and then save each item to our array.
    	// we use these to track each current item, until it's ready to be added to the "stories" array
    	NSString * currentElement;
    	NSMutableString * currentTitle, * currentDate, * currentSummary, * currentLink;
  2. insorior thread starter macrumors newbie

    Jun 15, 2010


Share This Page