开发者

how to present the HTML output to the view

开发者 https://www.devze.com 2023-01-20 19:29 出处:网络
i hav an html file which displays table view ,how to load this on the ipad view .. and i want to enter th开发者_StackOverflowe values to the fields of table view in html o/p....

i hav an html file which displays table view ,how to load this on the ipad view ..

and i want to enter th开发者_StackOverflowe values to the fields of table view in html o/p....

any ideas ..

Thanks in advance...


You'll want to take a look at the UIWebView for displaying a local html file onto the iOS device.

The code below will load index.html from your project folder:

[webView loadRequest:
    [NSURLRequest requestWithURL:
        [NSURL fileURLWithPath:
            [[NSBundle mainBundle] pathForResource:@"index" ofType:@"html"] 
            isDirectory:NO]
    ]
];
0

精彩评论

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