FWAppearance

@interface FWAppearance : NSObject

UIAppearance扩展类,支持任意NSObject对象使用UIAppearance能力

Note

系统默认时机是在didMoveToWindow处理UIAppearance

  • 获取指定 Class 的 appearance 对象,每个 Class 全局只会存在一个 appearance 对象

    Declaration

    Objective-C

    + (nonnull id)appearanceForClass:(nonnull Class)aClass;
  • 获取指定 appearance 对象的关联 Class,通过解析_UIAppearance对象获取

    Declaration

    Objective-C

    + (nonnull Class)classForAppearance:(nonnull id)appearance;