SLIBIO/SLib

webview is error

rareli opened this issue · 3 comments

the webview is null when open a url/page.
code:

m_webView = new WebView();
m_webView->setWidthFilling();
m_webView->setHeightFilling();

m_webView->loadURL("http://mozilla.org/MPL/2.0/");

Console::println("Error:%s",m_webView->getErrorMessage());

addViewToContent(m_webView);

You can add following lines to info.plist in your project.

<key>NSAppTransportSecurity</key>
<dict>
  <key>NSAllowsArbitraryLoads</key>
      <true/>
</dict>

OK,good job!