3
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Apple公式iPhoneXマスク画像を使う非公式な方法

3
Posted at

iPhoneXでスクリーンショットを撮ると、画面下のホームインジケーターは写りますが、画面四隅の丸角とセンサーハウジングは写りません。後者が画面に入っているのといないのとでは想像以上に印象が違って見えるので、iPhoneX対応する場合は解像度だけ合わせて検証してもあまり意味がないです。

…そういえば、iPhoneXのシミュレータには丸角とセンサーハウジングがちゃんと入ってるな…ということで、探してみたら、ありました!!

iPhoneX_Frame.png

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/CoreSimulator/Profiles/DeviceTypes/iPhone X.simdevicetype/Contents/Resources/framebuffer.pdf

※要Xcode9以上。
※パッケージの中のさらに中の中の…にあるので、Finderからは「パッケージの内容を表示」を何度か行う必要があります。

PNGではなくPDFというのがNeXTSTEPの血を受け継ぐmacOSらしいところではありますが、お好きなツールで透過PNG化して、ホームインジケーター入りのスクショと合成するなりして、デバッグプロジェクトに組み込んで検証して頂ければと思います。

ただ、シミュレータにはある「ベゼル(物理枠)」の位置は分からず。ないはずがないので、見つけた方はご連絡くださいませ。

3
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?