Share via


UITraitCollection.FromUserInterfaceStyle(UIUserInterfaceStyle) 메서드

정의

새 특성 컬렉션을 만들고 지정된 사용자 인터페이스 스타일에 연결합니다.

[Foundation.Export("traitCollectionWithUserInterfaceStyle:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.TvOS, 10, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 12, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All, null)]
public static UIKit.UITraitCollection FromUserInterfaceStyle (UIKit.UIUserInterfaceStyle userInterfaceStyle);
static member FromUserInterfaceStyle : UIKit.UIUserInterfaceStyle -> UIKit.UITraitCollection

매개 변수

userInterfaceStyle
UIUserInterfaceStyle

새 특성 컬렉션을 연결할 사용자 인터페이스 스타일입니다.

반환

지정된 사용자 인터페이스 스타일과 연결된 새 특성 컬렉션입니다.

특성

적용 대상