UIView.TranslatesAutoresizingMaskIntoConstraints プロパティ

定義

自動レイアウトの制約に自動サイズ設定マスクを変換するかどうかを指定します。

[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 6, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual bool TranslatesAutoresizingMaskIntoConstraints { [Foundation.Export("translatesAutoresizingMaskIntoConstraints")] [ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 6, 0, ObjCRuntime.PlatformArchitecture.All, null)] get; [Foundation.Export("setTranslatesAutoresizingMaskIntoConstraints:")] [ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 6, 0, ObjCRuntime.PlatformArchitecture.All, null)] set; }
member this.TranslatesAutoresizingMaskIntoConstraints : bool with get, set

プロパティ値

既定値は true です。

属性

注釈

このプロパティが trueの場合、この UIView' s Superview は に変換UIViewNSLayoutConstraintAutoresizingMaskされ、 の にSuperviewConstraints含められます。 これにより、この UIView が完全に制限され、自動レイアウトでは、この UIViewサイズを変更したり再配置したりできなくなります。

アプリケーション開発者が自動レイアウトを使用している場合は、このプロパティを に false 設定すると、自動レイアウトでこの UIViewのレイアウトを変更できます。

制約が過剰な自動レイアウトでは、多くの場合、自動レイアウト デバッグ情報での の NSAutoresizingMaskLayoutConstraint 外観は、アプリケーション開発者がこのプロパティ true をどこかに不適切に残したことを示しています。

適用対象