Skip to content

Charlotte3240/FixDictionaryCategory

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

FixDictionaryCategory

NSString *string = nil;
NSDictionary *dic = @{
                      string:@"first key",
                      @"testkey":@"testObject",
                      @"last object":string
                      };
NSLog(@"dic is %@",dic);

2016-08-29 16:20:40.188 FixDictionary[16620:537697] CharlotteTip : key is nil(object is “first key”)
2016-08-29 16:20:40.189 FixDictionary[16620:537697] CharlotteTip : object is nil(key is “last object”)
2016-08-29 16:20:40.189 FixDictionary[16620:537697] fixd dictionary is {
    testkey = testObject;
}
2016-08-29 16:20:40.189 FixDictionary[16620:537697] dic is {
    testkey = testObject;
}

About

fix nil problem in dictionary

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published