Appearance
public class Appearance
UIAppearance扩展类,支持任意NSObject对象使用UIAppearance能力
系统默认时机是在didMoveToWindow处理UIAppearance 注意:Swift只有标记\@objc dynamic的属性才支持UIAppearance QMUI_iOS
-
获取指定 Class 的 appearance 对象,每个 Class 全局只会存在一个 appearance 对象
Declaration
Swift
public static func appearance(for aClass: AnyClass) -> AnyObject?
-
获取指定 appearance 对象的关联 Class,通过解析_UIAppearance对象获取
Declaration
Swift
public static func `class`(for appearance: AnyObject) -> AnyClass