アプリのUIレイアウト

Nobuyuki Nishiyama
November 15, 2018
680

 アプリのUIレイアウト

iPhoneやiPadでアプリを作る時にどうしても詰まるUIのレイアウト。

アプリ「パズル&モナーク」
https://apple.co/2SkC2Pc
ソースコード
https://github.com/tek-nishi/PuzzleAndMonarch

Nobuyuki Nishiyama

November 15, 2018

Annual Pro sale · Save $30

Have presentations of your own?

Share with private links, password protection, and more control over your work.

Transcript

30 slides
  1. wηʔϑΤϦΞͷ༗ແΛௐ΂Δؔ਺Λ࡞੒ J1IPOF9ରԠ // セーフエリアがあるか調べる bool check() { auto* view =

    (UIView*)ci::app::getWindow()->getNative(); UIEdgeInsets insets = UIEdgeInsetsMake(0, 0, 0, 0); if ([view respondsToSelector: @selector(safeAreaInsets)]) { insets = [view safeAreaInsets]; } return (insets.top > 0) || (insets.bottom > 0) || (insets.left > 0) || (insets.right > 0); }