Reduce the Xcode Simulator (Retina 4 inch)

后端 未结 3 935
轮回少年
轮回少年 2020-12-25 12:46

I\'m using macbook Air and using the iphone Simulator. I changed it to Retina 4 inch, and the screen of the simulator become so big! is there a way to reduce the size?

3条回答
  •  独厮守ぢ
    2020-12-25 13:38

    Now It's more flexible with Xcode 9-Simulator.

    You can pick & drag any corner or simulator to resize it and set it according to your requirement.

    enter image description here


    There are several other ways also, to scale your simulator.

    Using Terminal Command
    Follow these steps to scale simulator using terminal commands

    1. Close/Quit simulator. (if open)
    2. Open Terminal app (using Spotlight search, Press ⌘ + SPACE to open spotlight search)
    3. Copy following text and paste it next to terminal cursor.

    defaults write ~/Library/Preferences/com.apple.iphonesimulator SimulatorWindowLastScale "0.3"

    1. Open 'Simulator' (Run your iOS project using Xcode).

    You will find simulator scale update.



    Simulator scale options from Xcode Menu:

    Menubar >> Window >> Scale >> "Here available options for simulator scaling"

    Here is ref snapshot: enter image description here

提交回复
热议问题