You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert
前回のつづき 今回はCustom Viewの高さが可変する場合について説明したいと思います。 サンプルコード: https://github.com/stack3/iOSAutoLayoutSamples サンプルコードを起動してFlexible Custom Viewを選択すると以下の画面が表示されます。 グレー背景とその上にLabelが2つ乗っていますが、これがCustom Viewです。 Resizeボタンを押すと以下のように改行が必要な文字列がLabelに設定されて、Custom Viewの高さが変わります。 ResizeボタンもCustom Viewの高さに合わせて下へ移動します。 横画面も対応できています。横画面の場合は文字が1行にたくさん入るので高さが低くなります。 STFlexibleCustomView.xib このファイルでCustom Viewのレイアウトをしています
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く