摘要:
UIColor+Extension.h #import <UIKit/UIKit.h> NS_ASSUME_NONNULL_BEGIN @interface UIColor (Extension) @property(nonatomic, assign, readonly) CGFloat red; 阅读全文
摘要:
UIColor+Modify.h #import <UIKit/UIKit.h> @interface UIColor (Modify) /** * @brief 反转颜色 * * @return 反转处理后的颜色 */ - (UIColor *)inverted; /** * @brief 半透明 阅读全文
摘要:
/** * @brief UIColor转 #ffffff 格式的16进制字符串 * * @return 格式为 #ff0000 的16进制字符串 */ - (NSString *)hex_String { const CGFloat *components = CGColorGetComponen 阅读全文