18 lines
330 B
Objective-C
18 lines
330 B
Objective-C
//
|
|
// NSMutableDictionary+Saft.m
|
|
// xplan-ios
|
|
//
|
|
// Created by 冯硕 on 2022/11/11.
|
|
//
|
|
|
|
#import "NSMutableDictionary+Saft.h"
|
|
|
|
@implementation NSMutableDictionary (Saft)
|
|
|
|
- (void)safeSetObject:(id)anObject forKey:(id <NSCopying>)aKey{
|
|
if (anObject == nil || aKey == nil)return;
|
|
[self setObject:anObject forKey:aKey];
|
|
}
|
|
|
|
@end
|