Interface UIAppearance

    • Method Detail

      • _appearance

        @NotNull
        @NotNull UIAppearance _appearance()
        To customize the appearance of all instances of a class, send the relevant appearance modification messages to the appearance proxy for the class. For example, to modify the bar tint color for all UINavigationBar instances: [[UINavigationBar appearance] setBarTintColor:myColor]; Note for iOS7: On iOS7 the tintColor property has moved to UIView, and now has special inherited behavior described in UIView.h. This inherited behavior can conflict with the appearance proxy, and therefore tintColor is now disallowed with the appearance proxy.
      • _appearanceForTraitCollection

        @NotNull
        @NotNull UIAppearance _appearanceForTraitCollection​(@NotNull
                                                            @NotNull UITraitCollection trait)
        API-Since: 8.0
      • _appearanceForTraitCollectionWhenContainedIn

        @NotNull
        @Deprecated
        @NotNull UIAppearance _appearanceForTraitCollectionWhenContainedIn​(@NotNull
                                                                           @NotNull UITraitCollection trait,
                                                                           @Nullable
                                                                           @Nullable UIAppearanceContainer ContainerClass,
                                                                           java.lang.Object... varargs)
        Deprecated.
        API-Since: 8.0 Deprecated-Since: 9.0
      • _appearanceForTraitCollectionWhenContainedInInstancesOfClasses

        @NotNull
        @NotNull UIAppearance _appearanceForTraitCollectionWhenContainedInInstancesOfClasses​(@NotNull
                                                                                             @NotNull UITraitCollection trait,
                                                                                             @NotNull
                                                                                             @NotNull NSArray<?> containerTypes)
        API-Since: 9.0
      • _appearanceWhenContainedIn

        @NotNull
        @Deprecated
        @NotNull UIAppearance _appearanceWhenContainedIn​(@Nullable
                                                         @Nullable UIAppearanceContainer ContainerClass,
                                                         java.lang.Object... varargs)
        Deprecated.
        To customize the appearances for instances of a class contained within an instance of a container class, or instances in a hierarchy, use +appearanceWhenContainedInInstancesOfClasses: for the appropriate appearance proxy. For example: [[UINavigationBar appearanceWhenContainedInInstancesOfClasses:@[[UISplitViewController class]]] setBarTintColor:myColor]; [[UINavigationBar appearanceWhenContainedInInstancesOfClasses:@[[UITabBarController class], [UISplitViewController class]]] setBarTintColor:myTabbedNavBarColor]; In any given view hierarchy the outermost appearance proxy wins. Specificity (depth of the chain) is the tie-breaker. In other words, the containment statement is treated as a partial ordering. Given a concrete ordering (actual subview hierarchy), we select the partial ordering that is the first unique match when reading the actual hierarchy from the window down. API-Since: 5.0 Deprecated-Since: 9.0
      • _appearanceWhenContainedInInstancesOfClasses

        @NotNull
        @NotNull UIAppearance _appearanceWhenContainedInInstancesOfClasses​(@NotNull
                                                                           @NotNull NSArray<?> containerTypes)
        API-Since: 9.0