UIViewController.SetOverrideTraitCollection Method

Definition

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

C#
[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);

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

Producto Versiones
Xamarin iOS SDK 12