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 コードを WebKit に直接渡すにはどうすればよいですか。私は次のようなものを探しています:
NSString
[aNSTextField setString:@"foo"];
それはそのようなものと同じくらい簡単でしょうか?file://または、テキストをファイルに保存してから、 URLでアクセスするなどの方法に頼る必要がありますか?
file://
あなたが持っていると仮定しますWebView:
WebView
[[myWebView mainFrame] loadHTMLString:myHTMLString baseURL:myBaseURL];