USO400
  • Home
  • About
  • KH400
  • SuperSherpa
  • ZX-10
  • Todo
  • ALTO WORKS
  • KMX125

autolayout

A collection of 1 post

ios

Xibファイルでレイアウトを定義したUIViewControllerで*LayoutGuideを使う

XIBファイルで開発を進めているけど UIViewController のサブビューが UINavigationBar にめり込んでつらいという話をされたので対策を考えた。 XIBファイルベースで開発するUIViewControllerサブクラスは FromNibViewController のサブクラスとして実装することを前提として。 class FromNibViewController: UIViewController { // MARK: -- Statics static var kTopLayoutConstraint: String { return "TopLayoutConstraint" } static var kBottomLayoutConstraint: String { return "BottomLayoutConstraint" } // MARK: -- Properties

USO400 © 2022
Latest Posts Twitter Ghost