[英]What is the best way to embed a web application inside a native ios app?
I have implemented a certain video viewer written in javaScript, HTML, CSS. 我已经实现了一个用javaScript,HTML,CSS编写的视频查看器。 I want to embed my viewer in a native IOS app written in Swift 3. The problem is that I need the viewer to work offline and for that I need a local Node.js server that runs from within my native app. 我想将我的查看器嵌入到用Swift 3编写的本机IOS应用程序中。问题是我需要查看器脱机工作,为此我需要一个从我的本机应用程序中运行的本地Node.js服务器。 Does anyone has an idea if it is possible and how to do this if it is? 有没有人知道它是否可能以及如果有的话怎么做?
Thanks in advanced 提前致谢
Drag all files in folder structure of Xcode. 拖动Xcode文件夹结构中的所有文件。 for ex. 对于前 Node.js, .css files and take one WebView wherever you want and load HTML code in that Webview. Node.js,.css文件并在任何地方获取一个WebView,并在该Webview中加载HTML代码。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.