LoginSignup
29
28

More than 5 years have passed since last update.

Swiftスクロールビューで縦長画面の作成

Last updated at Posted at 2015-06-16

はじめに

Storybordで縦長Viewを作成するためメモ

ツリー

・デフォルトのViewを削除しScroll Viewを追加
・Scroll View上にViewの追加
1-1.png

制約

・viewにEqual Widthsをscroll Viewに対して追加(vievからscroll viewへ control + ドラッグ)
※viewのwidth値を可変にする
1-2.png

・viewに高さとマージンを加える
1-3.png

・スクロールバーが表示される
1-4.png

サンプルコード

29
28
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
29
28