开发者

iphone application [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 12 years ago.

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜