我正在構建一個網絡應用程序並遇到了iOS 8的問題。請注意,這是特定於iOS 8的,因爲它在以前的版本中工作正常。iOS 8網絡應用程序屏幕在加載相機應用程序後縮小
我有一個頁面可以直接從手機或平板電腦上傳圖片。我使用以下鏈接調用相機應用程序:
<input type="file" accept="image/*" capture="camera" name="files[]">
相機應用程序按預期打開並拍攝照片時沒有任何問題。但是,當相機應用程序關閉並返回到Web應用程序時,屏幕高度會減少一半以上。無法糾正關閉和重新啓動應用程序的期望。
你可以看到它的外觀在這裏拍攝照片後: Screencast
看起來好像屏幕保持景觀。但是旋轉設備只會使情況變得更糟。
我認爲這是一個iOS 8的錯誤,但想知道如果任何人有任何想法如何糾正或解決這個問題。
最後一個注意事項是,只有在作爲Web應用程序運行時纔會出現此問題。使用Safari瀏覽器時可以使用。
僅供參考 - 這裏是我使用的meta標籤:
<!-- Run in full-screen mode. -->
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="mobile-web-app-capable" content="yes">
<!-- Make the status bar black with white text. -->
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<!-- Customize home screen title. -->
<meta name="apple-mobile-web-app-title" content="DigiSite">
<!-- Disable phone number detection. -->
<meta name="format-detection" content="telephone=no">
<!-- Set viewport. -->
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
<!-- Startup images -->
<!-- iOS 6 & 7 iPad (retina, portrait) -->
<link href="http://img.digisite.us/splash.png?w=1536&h=2008&c=<br />
<b>Notice</b>: Undefined index: background in <b>/home5/digisite/public_html/mobile/mobileHeader.php</b> on line <b>22</b><br />
&n=lumentum"
media="(device-width: 768px) and (device-height: 1024px)
and (orientation: portrait)
and (-webkit-device-pixel-ratio: 2)"
rel="apple-touch-startup-image">
<!-- iOS 6 & 7 iPad (retina, landscape) -->
<link href="http://img.digisite.us/splash.png?w=1496&h=2048&c=&n=lumentum"
media="(device-width: 768px) and (device-height: 1024px)
and (orientation: landscape)
and (-webkit-device-pixel-ratio: 2)"
rel="apple-touch-startup-image">
<!-- iOS 6 iPad (portrait) -->
<link href="http://img.digisite.us/splash.png?w=768&h=1004&c=&n=lumentum"
media="(device-width: 768px) and (device-height: 1024px)
and (orientation: portrait)
and (-webkit-device-pixel-ratio: 1)"
rel="apple-touch-startup-image">
<!-- iOS 6 iPad (landscape) -->
<link href="http://img.digisite.us/splash.png?w=748&h=1024&c=&n=lumentum"
media="(device-width: 768px) and (device-height: 1024px)
and (orientation: landscape)
and (-webkit-device-pixel-ratio: 1)"
rel="apple-touch-startup-image">
<!-- iOS 6 & 7 iPhone 5 -->
<link href="http://img.digisite.us/splash.png?w=640&h=1096&c=&n=lumentum"
media="(device-width: 320px) and (device-height: 568px)
and (-webkit-device-pixel-ratio: 2)"
rel="apple-touch-startup-image">
<!-- iOS 6 & 7 iPhone (retina) -->
<link href="http://img.digisite.us/splash.png?w=640&h=920&c=&n=lumentum"
media="(device-width: 320px) and (device-height: 480px)
and (-webkit-device-pixel-ratio: 2)"
rel="apple-touch-startup-image">
謝謝你在先進。
打開蘋果的bug記者的問題。問題ID:19599472 – 2015-01-26 17:41:08
我在ios8上看到過這個問題。 – 2015-03-30 14:45:57