tags:

views:

50

answers:

2

i want to display an output of html text file in iphone using xcode? how to run and get output of html file

A: 

Use UIWebview to show your html.

Satyam svv
A: 

UIWebView should makes just what you need.

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {    

    window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] applicationFrame]];    
    UIWebView* wv = [[UIWebView alloc] initWithFrame:CGRectMake(0.0, 0.0, 320.0, 200)];
    [wv loadHTMLString:@"<html><body>Hello <b>World</b></body></html>" baseURL:nil];
    [window addSubview:wv];
    [wv release];             
    [window makeKeyAndVisible];

    return YES;
}
VdesmedT