简体   繁体   English

iOS7与iPad上的App的兼容性

[英]iOS7 compatibility with App on iPad

Our current app doesn't work on the ipad 3 with retina display running ios7 beta 6. 我们当前的应用无法在运行ios7 beta 6的视网膜显示屏的ipad 3上运行。

The html page served between the is too big on the ipad, ie. 在iPad上投放的html页面太大,即。 ignores 100% width - therefore the user needs to scrolls around the page to see all the buttons and functionality rather than it fitting on one page. 忽略100%的宽度-因此,用户需要在页面上滚动以查看所有按钮和功能,而不是放在一页上。

This doesn't happen on the iphone 4 running ios7 (other models not checked) and it doesn't matter whether or not x2 is selected for the ipad zoom. 在运行ios7的iphone 4(未选中其他型号)上不会发生这种情况,并且是否为ipad缩放选择了x2都无关紧要。

Has any one come across this issue, is this a media query fix or a iOs7 bug? 有没有人遇到这个问题,这是媒体查询修复还是iOs7错误?

Just updating my answer based on what we've found last week and implemented for our app as a solution. 只是根据我们上周发现的答案更新我的答案,并为我们的应用程序实施该解决方案。

Although not entirely clear I believe the Question in hand above has to do with an HTML application running in webview vs. a web application in safari. 尽管尚不完全清楚,但我认为上述问题与在webview中运行的HTML应用程序与在safari中运行的Web应用程序有关。 Because 2x compatibility mode is being referenced in the question. 因为在问题中引用了2x兼容模式。

Issue: Is not due to media Query but the viewport width=device-width is returning 768 instead of the 320 it returned in <= iOS6.x, when running an iPhone application in 'Compatibility Mode' on an iPad. 问题:不是由于媒体查询引起的,而是在iPad上以“兼容模式”运行iPhone应用程序时,视口width = device-width返回768,而不是它在<= iOS6.x中返回的320。

Fixing on the remote page The best solution is to edit the viewport on the remote page by modifying the value of the 'width' attribute or removing it all together. 固定在远程页面上最好的解决方案是通过修改'width'属性的值或将其全部删除来在远程页面上编辑视口。

Fixing natively: Few options... 1) Build the app as 'Universal' 2) I found somewhat passable results by executing javascript on webViewDidFinishLoad to decrease the scale 本地修复:很少有选择... 1)将应用构建为“通用” 2) 通过在webViewDidFinishLoad上执行javascript以减小缩放比例,我发现了一些可通过的结果

self.webView stringByEvaluatingJavaScriptFromString:@"$('meta[name=viewport]').attr('content','width=device-width, initial-scale=.41 user-scalable=no');"];

If you happen to be using PhoneGap/Cordova, issue was also identified and filed here: https://issues.apache.org/jira/browse/CB-4323 如果您碰巧正在使用PhoneGap / Cordova,也会在此处找到并提交问题: https : //issues.apache.org/jira/browse/CB-4323

This should help: http://www.mobilexweb.com/blog/safari-ios7-html5-problems-apis-review 这应该会有所帮助: http : //www.mobilexweb.com/blog/safari-ios7-html5-problems-apis-review

iOS7 has been said to be the buggiest Safari version since 1.0. 自1.0以来,iOS7被认为是功能最强大的Safari版本。

There is no way to have a truly fullscreen experience on your website with iOS7. 使用iOS7,无法在您的网站上获得真正的全屏体验。 This was one of the wonderful aspects of iOS 6, and losing it is a major step backwards. 这是iOS 6的奇妙方面之一,而丢失它是倒退的一大步。

I hope that Apple comes to it's senses... 我希望苹果能有所作为...

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

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