哪些iPhone应用程序将在缩放模式下在iPad 2上运行?

时间:2013-01-23 09:45:49

标签: iphone ios compatibility retina-display ipad-2

我没有iPad 2,所以我无法测试。假设我开发了一个仅使用视网膜图像的应用程序,因为我只能向上兼容iPhone 4。他们会以缩放模式在iPad 2上运行吗?从技术上讲,iPad 2非视网膜显示器的分辨率比iPhone 4视网膜显示器大。但我不确定它会如何显示。有人测过这个吗?

4 个答案:

答案 0 :(得分:0)

该应用将在信箱中运行,缩放尺寸。

答案 1 :(得分:0)

它看起来与在iPad上运行的非视网膜iPhone应用程序相同,即在屏幕中间看起来像iPhone。 “视网膜”像素被下采样到较低分辨率,如果你点击“2x”按钮,下采样像素的大小只会增加一倍以适应屏幕,即使它们理论上可以用iPad映射1-1。像素。

答案 2 :(得分:-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">

答案 3 :(得分:-1)

如果您希望自己的应用看起来像ipad应用,则需要在目标配置中添加通用属性。如果目标只是Iphone,它将始终显示在小窗口中。