【UIKit-54-1】UIInterface-系统的颜色与字体

来源:互联网 发布:第三方软件测试报告 编辑:程序博客网 时间:2024/06/14 23:25


// for UINavigationBar and UIToolBar


typedefNS_ENUM(NSInteger, UIBarStyle) {

    UIBarStyleDefault          =0,

    UIBarStyleBlack            =1,

    

    UIBarStyleBlackOpaque      =1, // Deprecated. Use UIBarStyleBlack

    UIBarStyleBlackTranslucent = 2,// Deprecated. Use UIBarStyleBlack and set the translucent property to YES

};


typedefNS_ENUM(NSInteger, UIUserInterfaceSizeClass) {

    UIUserInterfaceSizeClassUnspecified =0,

    UIUserInterfaceSizeClassCompact     =1,

    UIUserInterfaceSizeClassRegular     =2,

} NS_ENUM_AVAILABLE_IOS(8_0);




// System colors


@interface UIColor (UIColorSystemColors)

+ (UIColor *)lightTextColor;               // for a dark background 灰色

+ (UIColor *)darkTextColor;                // for a light background 黑色


+ (UIColor *)groupTableViewBackgroundColor;// tableView 的背景颜色浅灰色




@end


// System fonts


@interface UIFont (UIFontSystemFonts)

+ (CGFloat)labelFontSize;// 系统label大小 17 

+ (CGFloat)buttonFontSize;// 系统button字体大小 18

+ (CGFloat)smallSystemFontSize;// 系统小字体 12

+ (CGFloat)systemFontSize;// 系统字体 14

@end




0 0
原创粉丝点击