ReplicatedMergeTree

Searching…

qiita.com

UIViewControllerのライフサイクル #iOS - Qiita

4.ビューのlayoutSubviewsメソッドが呼び出されます。 ビュー階層を構築するために自動レイアウト機能が使われていれば、次の手順でレイアウト制約を更新できます。

developer.apple.com

LayoutSubviews | Apple Developer Documentation

You receive a LayoutSubviews input to your implementations of Layout protocol methods, like placeSubviews(in:proposal:subviews:cache:) and sizeThatFits(proposal:subviews:cache:).

appdev-room.com

【Swift/UIKit】UIViewを明示的に再描画する方法 ...

SwiftのUIKitのUIViewを明示的に再描画するためにはsetNeedsDisplayメソッドを使用します。 似たような役割を持つsetNeedsLayout、layoutIfNeeded、layoutSubviewsの動作の違いや使い方なども併せてまとめていきます。

qiita.com

「setNeedsDisplay」、「setNeedsLayout ...

・ What is the relationship between UIView's setNeedsLayout, layoutIfNeeded and layoutSubviews? ・ UIView が持つ描画・レイアウト更新系のメソッドメモ

blog.fenrir-inc.com

【 iOS 開発 Tips】View のレイアウトをどうするか? (フェンリル ...

layoutSubviews でレイアウト調整をおこなう方法は UIScrollView で特に威力を発揮するのですが、layoutSubviews の呼び出し頻度も高いです。 呼び出し頻度が高いのでこのなかで重い処理は本来の目的とは違う処理を中に書いてしまうと動きが悪くなってしまいます。

developer.apple.com

LayoutSubview | Apple Developer Documentation

Layout protocol methods receive a LayoutSubviews collection that contains exactly one proxy for each of the subviews arranged by your container. Use a proxy to get information about the associated subview, like its di...