Latest 0.0.3
Homepage https://github.com/ishkawa/ISRemoveNull
License MIT Copyright (c) 2012 Yosuke Ishikawa

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Platforms ios 4.0, requires ARC
Authors

ISRemoveNull Build Status Coverage Status

ISRemoveNull is extension of NSArray and NSDictionary to remove NSNull from them.

Usage

  • add files under ISRemoveNull/
  • import ISRemoveNull.h
  • remove NSNull from NSDictionary
NSDictionary *dictionary = @{
    @"hoge": @"hoge",
    @"fuga": @"fuga",
    @"null": [NSNull null],
    @"piyo": @"piyo",
};

NSDictionary *strippedDictionary = [dictionary dictionaryByRemovingNull];
// result: @{
//     @"hoge" : @"hoge",
//     @"fuga" : @"fuga",
//     @"piyo" : @"piyo",
// };
  • remove NSNull from NSArray
NSArray *array = @[ @"hoge", @"fuga", [NSNull null], @"piyo" ];
NSArray *strippedArray = [array arrayByRemovingNull];
// result: @[@"hoge", @"fuga", @"piyo"];

Installation with CocoaPods

pod 'ISRemoveNull'

License

Copyright (c) 2012-2013 Yosuke Ishikawa

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Latest podspec

{
    "name": "ISRemoveNull",
    "version": "0.0.3",
    "summary": "extension of NSArray and NSDictionary to remove NSNull from them.",
    "homepage": "https://github.com/ishkawa/ISRemoveNull",
    "authors": {
        "Yosuke Ishikawa": "[email protected]"
    },
    "source": {
        "git": "https://github.com/ishkawa/ISRemoveNull.git",
        "tag": "0.0.3"
    },
    "platforms": {
        "ios": "4.0"
    },
    "requires_arc": true,
    "source_files": [
        "Classes",
        "ISRemoveNull/**/*.{h,m}"
    ],
    "license": {
        "type": "MIT",
        "text": "      Copyright (c) 2012 Yosuke Ishikawann      Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:nn      The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.nn      THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.n"
    }
}

Pin It on Pinterest

Share This