Xcode 9.1 iOS simulator: Pixel Accurate option disabled and grayed out

匿名 (未验证) 提交于 2019-12-03 02:06:01

问题:

On Xcode 9.1 the Pixel Accurate option is disabled and grayed out under the Window menu.

How can you re-enable this option?

回答1:

The original answer is wrong!

Russ from the Apple Simulator team says:

To take app store screenshots uncheck the "Optimize rendering for Window Scale" option in the Debug menu. I recommend turning this back on normally as it improves rendering performance. Double-clicking does not make the device use native resolution, that's just an accident due to the size of device you tested with and the size of your screen.

==========

ORIGINAL ANSWER (DOES NOT WORK RELIABLY):

  1. Make sure Window -> Show Device Bezels is unchecked.

  2. Double click the simulator's toolbar (the top bar listing the device and OS).

Note - sometimes, double-clicking the toolbar will just minimize the window to the dock. Alternately, simply click OSX menubar Window->Zoom.

Hello happy days, the simulator resizes and provides the right resolution for App Store screenshots.



回答2:

You could set the simulator to landscape mode by clicking + first, then you could click + 2 to select Pixel Accurate option, don't forget set simulator to portrait mode by clicking + :)



回答3:

I found the menu is only enabled when your screen resolution is able to support pixel accurate display( so as physical size). This is annoying because making a screenshot always generates a picture at the current size of the simulator on Xcode 9.1. It requires to the simulator to display in the pixel-accurate mode for qualified screenshots. For iPad Pro(12.9-in, 2732 x 2048 pixels), the mode is only available in landscape when my MacBook Pro is set to "More Space"- with actual resolution at 3840x2400.



回答4:

We don't enable that option unless your screen is large enough to display the device at the full resolution without running off the edges.

As an aside: If you have "Optimize rendering for window scale" enabled that causes the Simulator to render at the size of the window, not the native resolution of the device. That means screenshots are at the window's scaled size, not full device size. To get full-size screenshots you can temporarily disable that option. I recommend leaving it on otherwise because it improves performance.



回答5:

Since the computer I own (2017 MacBook Air) don't support landscape mode and resolution is 1440x1000 I'm stuck. In Xcode 9.0 you could still select 100% scaling and scroll down in the simulator. That's no longe possible.

I can understand if apple drops support for 2005 computers, but not 1 month old ones :S

So the only option I could find is to buy a extra screen! BUT for just making a screenshot you can still press CMD+S and it will make a native resolution one!



标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!