0

I have a strange problem, http://tmskiosk.oneclick.info/sso/userauth.aspx

this link I open in browser works fine but when I open it in webview it is not loading it's css file (Probably).

NSString *urlAddress = [NSString stringWithFormat:@"http://tmskiosk.oneclick.info/sso/userauth.aspx"];

 NSURL *url = [NSURL URLWithString:urlAddress];
    //URL Requst Object
    NSURLRequest *requestObj = [NSURLRequest requestWithURL:url]

[siteWebView loadRequest:requestObj];

4

2 回答 2

0
//Load web view data
    NSString *strWebsiteUlr = [NSString stringWithFormat:@"http://tmskiosk.oneclick.info/sso/userauth.aspx"];

    NSString *escapedUrlString = [strWebsiteUlr stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding];

    // Load URL

    //Create a URL object.
    NSURL *url = [NSURL URLWithString:escapedUrlString];

    //URL Requst Object
    NSURLRequest *requestObj = [NSURLRequest requestWithURL:url];

    //Load the request in the UIWebView.
    [_webview loadRequest:requestObj];
于 2013-06-28T06:09:55.877 回答
0

尝试使用以下方法。

WebView loadHTMLString:<#(NSString *)#> baseURL:<#(NSURL *)#>
于 2013-06-28T05:34:38.550 回答