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경우 이 UIViewSuperview 는 이 UIViewAutoresizingMask 를 s로 NSLayoutConstraint변환하고 의 에 SuperviewConstraints포함합니다. 이렇게 하면 이 값이 UIView 완전히 제한되고 자동 레이아웃에서 이 UIView의 크기를 조정하거나 위치를 변경할 수 없습니다.

애플리케이션 개발자가 자동 레이아웃을 사용하는 경우 이 속성을 로 false 설정하면 자동 레이아웃에서 이 UIView의 레이아웃을 변경할 수 있습니다.

지나치게 제한된 자동 레이아웃에서 자동 레이아웃 디버깅 정보의 모양 NSAutoresizingMaskLayoutConstraint 은 애플리케이션 개발자가 이 속성을 true 부적절하게 어딘가에 남겨 두었다는 것을 나타내는 경우가 많습니다.

적용 대상