0

私は iPad 2 を持っていないので、これをテストすることはできません。iPhone 4 以降とのみ互換性があるため、Retina イメージのみを使用するアプリを開発したとします。iPad 2 のスケーリング モードで実行できますか? 技術的には、iPad 2 の非 Retina ディスプレイの解像度は、iPhone 4 の Retina ディスプレイよりも大きくなっています。しかし、どのように表示されるかわかりません。誰かがこれをテストしましたか?

4

4 に答える 4

0

iPadで実行されている非網膜iPhoneアプリと同じように見えます。つまり、画面の中央にあるiPhoneのように見えます。「網膜」ピクセルは低解像度にダウンサンプリングされ、「2x」ボタンを押すと、理論的にはiPadと1対1でマッピングできますが、ダウンサンプリングされたピクセルのサイズは画面に合わせて2倍になります。ピクセル。

于 2013-01-23T09:58:13.387 に答える
0

アプリは、拡大縮小されたサイズのレター ボックスで実行されます。

于 2013-01-23T09:54:28.707 に答える
-1

私は現在HTML5アプリに取り組んでおり、CSSメディアクエリを使用してさまざまなデバイスをターゲットにしています。コードのサンプルを次に示します。-


    <!-- iPhone -->
    <link rel="apple-touch-icon" media="screen 
    and (resolution: 163dpi)" href="~/content/images/iOS-57.png" />

    <!-- iPad (portrait) --><!-- iPad (landscape) -->
    <link rel="apple-touch-icon" sizes="72x72" href="~/content/images/iOS-72.png" />

    <!-- iPad (Retina, portrait) --><!-- iPad (Retina, landscape) -->
    <link rel="apple-touch-icon" sizes="144x144" href="~/content/images/iOS-144.png" />

    <!-- iPhone (Retina) -->
    <link rel="apple-touch-icon" sizes="114x114" href="~/content/images/iOS-114.png" />

    <!-- iPhone -->
    <link href="~/content/images/apple-touch-startup-image-320x460.png"
          media="(device-width: 320px) and (device-height: 480px)
             and (-webkit-device-pixel-ratio: 1)"
          rel="apple-touch-startup-image">
    <!-- iPhone (Retina) -->
    <link href="~/content/images/apple-touch-startup-image-640x920.png"
          media="(device-width: 320px) and (device-height: 480px)
             and (-webkit-device-pixel-ratio: 2)"
          rel="apple-touch-startup-image">
    <!-- iPhone 5 -->
    <link href="~/content/images/apple-touch-startup-image-640x1096.png"
          media="(device-width: 320px) and (device-height: 568px)
             and (-webkit-device-pixel-ratio: 2)"
          rel="apple-touch-startup-image">
    <!-- iPad (portrait) -->
    <link href="~/content/images/apple-touch-startup-image-768x1004.png"
          media="(device-width: 768px) and (device-height: 1024px)
             and (orientation: portrait)
             and (-webkit-device-pixel-ratio: 1)"
          rel="apple-touch-startup-image">
    <!-- iPad (landscape) -->
    <link href="~/content/images/apple-touch-startup-image-748x1024.png"
          media="(device-width: 768px) and (device-height: 1024px)
             and (orientation: landscape)
             and (-webkit-device-pixel-ratio: 1)"
          rel="apple-touch-startup-image">
    <!-- iPad (Retina, portrait) -->
    <link href="~/content/images/apple-touch-startup-image-1536x2008.png"
          media="(device-width: 768px) and (device-height: 1024px)
             and (orientation: portrait)
             and (-webkit-device-pixel-ratio: 2)"
          rel="apple-touch-startup-image">
    <!-- iPad (Retina, landscape) -->
    <link href="~/content/images/apple-touch-startup-image-1496x2048.png"
          media="(device-width: 768px) and (device-height: 1024px)
             and (orientation: landscape)
             and (-webkit-device-pixel-ratio: 2)"
          rel="apple-touch-startup-image">
于 2013-01-23T09:50:52.350 に答える
-1

アプリを iPad アプリケーションのように見せたい場合は、ターゲット構成にユニバーサル プロパティを追加する必要があります。ターゲットが Iphone のみの場合、常に小さなウィンドウで表示されます。

于 2013-01-23T09:53:53.620 に答える