Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Adjusting the Xcode iPhone simulator scale and size [duplicate]

Is there anyway to make the iOS simulator for iPhone 5 in Xcode, be the actual size of the iPhone 5. I'm getting a huge display and things seemed to be scaled.

like image 393
cdub Avatar asked Oct 11 '22 14:10

cdub


People also ask

How do I make iOS simulator smaller?

Just pick & drag any corner of simulator to resize it and set it according to your requirement. Note: With Xcode 9.1+, Simulator scale options are changed.

How do you change font size on iPhone simulator?

In the simulator, go into settings (Choose "Home" on the hardware menu). Then General->Accessibility->Larger text. You also should slide the switch at the top to "Larger Accessibility Sizes". You'll then get a slider to adjust the text size.

How do you zoom in on iPhone simulator?

First you press and release OPTION + SHIFT which will make the gray circles stay on the screen without holding OPTION. Then hold down SHIFT to make the reference point follow the cursor.


2 Answers

With Xcode 9 - Simulator, you can pick & drag any corner of simulator to resize it and set according to your requirement.

Look at this snapshot.

enter image description here


Note: With Xcode 9.1+, Simulator scale options are changed.


Keyboard short-keys:
According to Xcode 9.1+

Physical Size       ⌘ 1      command + 1
Pixel Accurate      ⌘ 2      command + 2


According to Xcode 9

50% Scale           ⌘ 1      command + 1
100% Scale          ⌘ 2      command + 2
200% Scale          ⌘ 3      command + 3

Simulator scale options from Xcode Menu:

Xcode 9.1+:
Menubar ▶ Window ▶ "Here, options available change simulator scale" (Physical Size & Pixel Accurate)

Pixel Accurate: Resizes your simulator to actual (Physical) device's pixels, if your mac system display screen size (pixel) supports that much high resolution, else this option will remain disabled.

Tip: rotate simulator ( ⌘ + ← or ⌘ + → ), if Pixel Accurate is disabled. It may be enabled (if it fits to screen) in landscape.

enter image description here


Xcode 9.0
Menubar ▶ Window ▶ Scale ▶ "Here, options available change simulator scale"

enter image description here


Tip: How do you get screen shot with 100% (a scale with actual device size) that can be uploaded on AppStore?

Disable 'Optimize Rendering for Window scale' from Debug menu, before you take a screen shot (See here: How to take screenshots in the iOS simulator)

There is an option

Menubar ▶ Debug ▶ Disable "Optimize Rendering for Window scale"

enter image description here


Here is Apple's document: Resize a simulator window

like image 290
Krunal Avatar answered Oct 13 '22 03:10

Krunal


You can't have 1:1 ratio.

However you can scale it from the iOS Simulator > Window > Scale menu.

like image 214
Desdenova Avatar answered Oct 13 '22 02:10

Desdenova