UIViewController.SetOverrideTraitCollection Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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