0

我有一个显示表格视图的 html 文件,如何在 ipad 视图上加载它。

我想在 html o/p 中将值输入到表视图的字段中......

有任何想法吗 ..

提前致谢...

4

1 回答 1

1

您需要查看用于在 iOS 设备上显示本地 html 文件的UIWebView 。

下面的代码index.html将从您的项目文件夹中加载:

[webView loadRequest:
    [NSURLRequest requestWithURL:
        [NSURL fileURLWithPath:
            [[NSBundle mainBundle] pathForResource:@"index" ofType:@"html"] 
            isDirectory:NO]
    ]
];
于 2010-10-22T16:38:50.847 回答