Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
来自 NSString 的 html 加载。
我有以下问题:我得到了 html 代码,想得到一个 webView 只是不知道如何做和搜索,如果有人愿意告诉我你是怎么做的,或者会欣赏任何例子,还没有找到例子。
UIWebView* newWebView = [[UIWebView alloc] initWithFrame:CGRectMake(x,y,width,height)]; [newWebView loadHTMLString:htmlString baseURL:[NSURL URLWithString:urlString]]; [self.view addSubview:newWebView]; [newWebView release];