简体   繁体   English

如何使我的网络应用程序iPhone 5兼容?

[英]How can I make my web app iPhone 5 compatible?

I have a website optimized as a web app with iOS safari, so that adding to home screen opens the app in a separate Webview. 我有一个网站优化为具有iOS Safari的网络应用程序,因此添加到主屏幕会在单独的Webview中打开应用程序。 However, it always opens in the 3.5" letter boxed mode, instead of stretching to fill the screen. I know that with native apps, you just have to add the iPhone 5 sized launch image. How can I do this for a web app? 但是,它始终以3.5英寸信箱方式打开,而不是拉伸以填满屏幕。我知道,对于原生应用程序,您只需添加iPhone 5大小的启动图像。如何为Web应用程序执行此操作?

I found on this post that all that is required is that you remove width=device-width from the viewport meta tag. 我在这篇文章中发现,所需要的只是从视口元标记中删除width=device-width The blog talks about specifying a startup image, but this appears to be optional. 该博客讨论了如何指定启动图像,但这似乎是可选的。

Edit: Original source of answer is Max Firtman . 编辑:答案的原始来源是Max Firtman He indicates it may be a bug as well (see comments), but for now, this solution works. 他表示这也可能是一个错误(见评论),但现在,这个解决方案有效。

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

相关问题 如何使我的iOS应用程序向后兼容? - How can I make my iOS app backward compatible? 如何将兼容的现有应用程序制作到iPhone X. - How to make compatible existing app to iPhone X 如何更新我的应用程序以使其与旧 ios 版本兼容? - How can I update my app to make it compatible with older ios versions? 如何使iPhone4及以下版本的应用程序兼容iPhone5? - How to make iPhone4 and below version app compatible for iPhone5? 使iPhone应用程序与iOS 3兼容 - Make iPhone app compatible with iOS 3 如何为使用Xcode开发的iPhone应用程序制作自定义应用程序内相机? - how can i make a custom, in-app camera for my iphone app developed in xcode? 如何在iPhone上预览Web应用程序设计并使其看起来像本机应用程序? - How can I preview a web app design on an iPhone and make it look like a native application? 我可以让我的iPhone应用程序仅使用一部分屏幕吗 - Can I make my iphone app use only a portion of the screen 如何在没有iPhone的情况下运行Apple Watch应用程序? - How can I make my Apple Watch app work without an iPhone? 如何使iPhone应用程序上的导航栏看起来像金属的? - How can I make the navigation bar on my iPhone app look metallic?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM