Szerkesztés

Megosztás a következőn keresztül:


GKLeaderboardViewController.AppearanceWhenContainedIn(Type[]) Method

Definition

Returns a strongly typed UIAppearance for instances of this class when the view is hosted in the specified hierarchy.

public static GameKit.GKLeaderboardViewController.GKLeaderboardViewControllerAppearance AppearanceWhenContainedIn (params Type[] containers);
static member AppearanceWhenContainedIn : Type[] -> GameKit.GKLeaderboardViewController.GKLeaderboardViewControllerAppearance

Parameters

containers
Type[]

List of types that developers want to have as the containers to apply this particular appearance

Returns

The appearance proxy object that developers can use to set properties when the given container hierarchy is active

Remarks

The returned object represents the UIAppearance proxy where developers can set appearance properties for instances of GKLeaderboardViewController when those instances are contained in the hierarchy specified by the containers parameter.

If developers want to control the appearance of subclasses of GKLeaderboardViewController, they should use the GetAppearance<T>(UITraitCollection, Type[]) method.

The following example shows how the AppearanceWhenContainedIn method works

var mySliders = UISlider.AppearanceWhenContainedIn (typeof (UINavigationBar), typeof (UIPopoverController));
mySliders.TintColor = UIColor.Red;

For more information, see the documentation for the UIAppearance class.

Applies to