【问题标题】:IPhone 6 plus simulator scaling [duplicate]iPhone 6 plus模拟器缩放[重复]
【发布时间】:2014-12-03 04:46:07
【问题描述】:

即使在将 iPhone 6 plus 模拟器缩放到 50% 之后(没有选项可以缩放小于此),它的大小仍然很大。 如何将其缩小到 25% 或更少?

【问题讨论】:

    标签: ios xcode ios-simulator xcode9 simulator


    【解决方案1】:

    您可以将 iOS 模拟器缩放到所需的比例(我尝试从 .2 到 1.4),它对我有用。

    为此,您必须转到 /Library/Preferences 并编辑 com.apple.iphonesimulator.plist > 文件。将 KEY SimulatorWindowLastScale 的值编辑为所需的比例。

    我在最新版本的 Mountain Lion (10.8.4) 和 iOS 6.0 模拟器上进行了尝试。

    (https://apple.stackexchange.com/questions/62757/how-do-i-resize-the-ios-simulator)

    我在 10.8.x(使用其他模拟器设备)上对其进行了测试,但在 10.9.x 或 10.10 上没有测试

    【讨论】:

    • 我之前试过这个,但 com.apple.iphonesimulator.plist 不存在。
    【解决方案2】:

    在终端中运行:

    默认写入 ~/Library/Preferences/com.apple.iphonesimulator SimulatorWindowLastScale "0.4"

    您可以根据自己的喜好改变“0.4”。然后,在模拟器中,硬件-> 设备-> iphone 6 plus。

    【讨论】:

      【解决方案3】:

      现在您可以在Xcode 6.3.1

      缩小到实际分辨率的 25%
      1. 在模拟器上运行您的应用
      2. 选择Window -> Scale(选择要缩放的百分比)

      快捷键

      Command Key + 1 : 100%
      Command Key + 2 : 75%
      Command Key + 3 : 50%
      Command Key + 4 : 33%
      Command Key + 5 : 25%
      

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2014-11-03
        • 2014-11-16
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多