iphone application [closed]
i w开发者_如何学编程ant to display an output of html text file in iphone using xcode? how to run and get output of html file
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;
}
Use UIWebview to show your html.
精彩评论