iphone-8

How do I reset the Simulator in Xcode 9

柔情痞子 提交于 2019-12-08 14:54:17
问题 I'm trying to reset it. In Xcode 8 we went to "Simulator -> Reset Content and Settings". I don't see that in Xcode 9 and need to wipe my simulator. 回答1: I found it. It is now under "Hardware -> Erase All Content and Settings" 回答2: Xcode 9.4 You need to click on Simulator first. Hardware > Erase All Content and Settings. This will reset the simulator. Wait for a minute for the Simulator to rebuild. 来源: https://stackoverflow.com/questions/46372976/how-do-i-reset-the-simulator-in-xcode-9

iPhone X / 8 / 8 Plus CSS media queries

随声附和 提交于 2019-11-27 16:59:40
What are the CSS media queries corresponding to Apple's new devices ? I need to set the body 's background-color to change the X's safe area background color. nathan iPhone X @media only screen and (device-width : 375px) and (device-height : 812px) and (-webkit-device-pixel-ratio : 3) { } iPhone 8 @media only screen and (device-width : 375px) and (device-height : 667px) and (-webkit-device-pixel-ratio : 2) { } iPhone 8 Plus @media only screen and (device-width : 414px) and (device-height : 736px) and (-webkit-device-pixel-ratio : 3) { } iPhone 6+/6s+/7+/8+ share the same sizes, while the

iPhone X / 8 / 8 Plus CSS media queries

旧巷老猫 提交于 2019-11-26 18:50:46
问题 What are the CSS media queries corresponding to Apple's new devices ? I need to set the body 's background-color to change the X's safe area background color. 回答1: iPhone X @media only screen and (device-width : 375px) and (device-height : 812px) and (-webkit-device-pixel-ratio : 3) { } iPhone 8 @media only screen and (device-width : 375px) and (device-height : 667px) and (-webkit-device-pixel-ratio : 2) { } iPhone 8 Plus @media only screen and (device-width : 414px) and (device-height :