类别
st646889325
这个作者很懒,什么都没留下…
展开
-
iOS 适配暗黑模式
#import <UIKit/UIKit.h>@interface UIColor (DarkColorChange)/** * 十六进制字符串 * * @param color 16进制色值 支持@“#123456”、 @“0X123456”、 @“123456”三种格式 * */+ (UIColor *)colorWithHexString:(NSString *)color;/** * 十六进制字符串 透明度 * * @param color 16进...原创 2021-02-24 09:43:02 · 184 阅读 · 0 评论 -
ios button重复点击问题
#import "UIControl+Extension.h"#import <objc/runtime.h>static const char *UIControl_acceptEventInterval = "UIControl_resumeEventInterval";static const void *BandNameKey = &BandNameKey;...原创 2020-04-07 14:15:27 · 293 阅读 · 0 评论 -
ios 十六进制颜色转换成RGB
#import <UIKit/UIKit.h>@interface UIColor (ColorChange)/** * 方法描述:透明度固定为1,以0x开头的十六进制转换 * * @param hexColor 0x开头的十六进制 * @return UIColor(RGB) * */+ (UIColor *)colorWithHex:(long)hexCo...原创 2020-04-07 14:13:36 · 638 阅读 · 0 评论 -
控制台将数组/字典中的Unicode转化中文
#import <Foundation/Foundation.h>@interface NSArray (MyLog)@end@interface NSDictionary (MyLog)@end#import "NSArray+MyLog.h"@implementation NSArray (MyLog)/** * 方法描述:数组中的Unic...原创 2018-11-22 09:20:51 · 421 阅读 · 0 评论 -
将网络中的NULL转化为@""
#import <Foundation/Foundation.h>@interface NSDictionary (NullChange)+ (id)changeType:(id)myObj;@end#import "NSDictionary+NullChange.h"@implementation NSDictionary (NullChange)+ (...原创 2018-11-22 09:22:08 · 152 阅读 · 0 评论 -
加密解密方法
#import <Foundation/Foundation.h>#import <CommonCrypto/CommonCrypto.h>@interface NSString (Secret)/** aes256 加密 */- (NSString *)aes256_encrypt:(NSString *)key;/** aes256 加密 */- (...原创 2018-11-22 09:22:56 · 244 阅读 · 0 评论