タグ

ブックマーク / qiita.com/m_orishi (1)

  • UIStackViewのトルツメWarning対応 - Qiita

    概要 iOSのUIStackViewを使ってトルツメ(空いた部分を詰めるレイアウト)を行う際に発生したWarningとその対応方法 実装内容 Storyboard上の定義は上記のような形。 Button2をhiddenすることで、Button1とButton3のみの表示にしつつ隙間をつめる。 [LayoutConstraints] Unable to simultaneously satisfy constraints. Probably at least one of the constraints in the following list is one you don't want. Try this: (1) look at each constraint and try to figure out which you don't expect; (2) find the code

    UIStackViewのトルツメWarning対応 - Qiita
  • 1