Düzenle

Aracılığıyla paylaş


UIViewController.SetOverrideTraitCollection Method

Definition

Sets the UITraitCollection object for the specified child view controller of this controller.

[Foundation.Export("setOverrideTraitCollection:forChildViewController:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 8, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual void SetOverrideTraitCollection (UIKit.UITraitCollection collection, UIKit.UIViewController childViewController);
abstract member SetOverrideTraitCollection : UIKit.UITraitCollection * UIKit.UIViewController -> unit
override this.SetOverrideTraitCollection : UIKit.UITraitCollection * UIKit.UIViewController -> unit

Parameters

collection
UITraitCollection

New traits that are to be applied to the specified child view controller.

childViewController
UIViewController

Child view controller whose trait collection is to be modified.

Attributes

Applies to