Landscape
V2EX  ›  iPhone

iPhone 12 目前新的逻辑分辨率下,偶尔会有软件的部分素材被压缩或拉大,以后会根据新逻辑分辨率优化吗?

  •  
  •   Landscape · Oct 26, 2020 · 14610 views
    This topic created in 2200 days ago, the information mentioned may be changed or developed.
    Supplement 1  ·  Oct 28, 2020
    今天看了下朋友 iPhone 11 的截图,发现 12 的逻辑分辨率比 11 小,12 的 UI 显得很大,像老人机的界面。不知道后续能不能优化一下
    14 replies  •  2020-10-27 15:08:56 +08:00
    mygreens
    mygreens
    Oct 26, 2020
    1
    12 有新的逻辑分辨率,需要 App 适配
    xzeroplus
    xzeroplus
    Oct 26, 2020
    2
    问一下 12 怎么适配显示到最新的逻辑分辨率
    今天早上更新的最新 xcode,发现有 12 的模拟器了,跑了一下工程发现 12 是缩放到 375x812,记得当年的 Xr 和 Xs Max 添加了对应的启动图就适配最新的逻辑分辨率,而非缩放显示,但是最新的 xcode 没发现能添加 12 和 12 pro max 的启动图
    ezrealinxh
    ezrealinxh
    Oct 26, 2020
    3
    又多了三种逻辑分辨率,又有活要干了,糟心
    emberzhang
    emberzhang
    Oct 26, 2020
    4
    5.8 寸机型增加了放大视图,一大堆 app 还没适配呢
    Landscape
    Landscape
    OP
    Oct 26, 2020
    5
    @xzeroplus xr 和 xs max 好像是等比的 所以不需要适配(可能有误),12 是新的,需要适配
    Landscape
    Landscape
    OP
    Oct 26, 2020
    6
    @emberzhang 可气的是苹果自己都没适配,12 的自动填入验证码的提示就是压缩的,看着特别难受
    Leonard
    Leonard
    Oct 26, 2020
    7
    @xzeroplus Xcode 14 不推荐用 Launch Image 了,新建 Launch Image 的时候已经显示 deprecated 了,所以没有新机型的支持
    Leonard
    Leonard
    Oct 26, 2020
    8
    Xcode 12,打错
    mgcnrx11
    mgcnrx11
    Oct 26, 2020
    9
    @Landscape 就是就是,验证码贼难看
    lisi1987
    lisi1987
    Oct 26, 2020
    10
    自动填入验证码没适配也是应用没适配的问题,需要用最新的 xcode 编译提包
    Landscape
    Landscape
    OP
    Oct 26, 2020
    11
    @lisi1987 原来是这样,感谢解答
    dreamCatcher
    dreamCatcher
    Oct 26, 2020
    12
    不都 autolayout 了吗?适配不是分分钟的事情?
    kera0a
    kera0a
    Oct 26, 2020 via iPhone
    13
    @Landscape 键盘为了兼容性,会跟随 App 的分辨率。

    现在 App 基本都能自适应屏幕的,
    从我适配情况看,我好几款 App 一行代码没改全部适配了 12 。

    只有一个注意点,估计也是现在有 App 没适配 12 的原因。
    就是之前使用 LaunchImage 做启动图的需要改成 Launch storyboard,否则就算程序支持 12 的分辨率也会被强行兼容模式放大
    Landscape
    Landscape
    OP
    Oct 27, 2020
    14
    @kera0a 的确 基本所有软件都是直接用没问题的
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1674 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 43ms · UTC 23:38 · PVG 07:38 · LAX 15:38 · JFK 18:38
    ♥ Do have faith in what you're doing.