Interface UIAppearance

    • Method Detail

      • _appearance

        java.lang.Object _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

        java.lang.Object _appearanceForTraitCollection​(UITraitCollection trait)
      • _appearanceForTraitCollectionWhenContainedIn

        @Deprecated
        java.lang.Object _appearanceForTraitCollectionWhenContainedIn​(UITraitCollection trait,
                                                                      UIAppearanceContainer ContainerClass,
                                                                      java.lang.Object... varargs)
        Deprecated.
      • _appearanceForTraitCollectionWhenContainedInInstancesOfClasses

        java.lang.Object _appearanceForTraitCollectionWhenContainedInInstancesOfClasses​(UITraitCollection trait,
                                                                                        NSArray<?> containerTypes)
      • _appearanceWhenContainedIn

        @Deprecated
        java.lang.Object _appearanceWhenContainedIn​(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.
      • _appearanceWhenContainedInInstancesOfClasses

        java.lang.Object _appearanceWhenContainedInInstancesOfClasses​(NSArray<?> containerTypes)