简体   繁体   English

iPhone应用程序仅显示网站

[英]iPhone app just showing website

Is it possible to make an iphone app which just shows a website? 是否可以制作仅显示网站的iPhone应用程序? So I make the website example.com and the app opens example.com. 因此,我创建了example.com网站,该应用程序打开了example.com。 Whenever I click a link it should just follow all links in the app and not in safari. 每当我单击链接时,它都应仅跟随应用程序中的所有链接,而不是在野生动物园中。 Is this possible and how? 这有可能吗?

Thanks. 谢谢。

This is known as "Add to Home Screen", you can program your website to support adding as an "HTML app". 这称为“添加到主屏幕”,您可以对网站进行编程以支持添加为“ HTML应用程序”。 However, there are some limitations including the inability to save which page you are on. 但是,存在一些限制,包括无法保存您所在的页面。

Have a look at ui webview it can render HTML, PDF and can be used as a web browser. 看看ui webview,它可以呈现HTML,PDF并可以用作网络浏览器。 It allows for displaying images and links and can be stored in your app bundle or online, 它可以显示图像和链接,并且可以存储在您的应用程序捆绑包中或在线存储,

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM