摘要: UIColor+Extension.h #import <UIKit/UIKit.h> NS_ASSUME_NONNULL_BEGIN @interface UIColor (Extension) @property(nonatomic, assign, readonly) CGFloat red; 阅读全文
posted @ 2022-12-08 17:49 CH520 阅读(31) 评论(0) 推荐(0) 编辑
摘要: UIColor+Modify.h #import <UIKit/UIKit.h> @interface UIColor (Modify) /** * @brief 反转颜色 * * @return 反转处理后的颜色 */ - (UIColor *)inverted; /** * @brief 半透明 阅读全文
posted @ 2022-12-08 17:36 CH520 阅读(67) 评论(0) 推荐(0) 编辑
摘要: /** * @brief UIColor转 #ffffff 格式的16进制字符串 * * @return 格式为 #ff0000 的16进制字符串 */ - (NSString *)hex_String { const CGFloat *components = CGColorGetComponen 阅读全文
posted @ 2022-12-08 17:17 CH520 阅读(166) 评论(0) 推荐(0) 编辑