Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

bismasaeed00/NullReplacer

Open more actions menu

Repository files navigation

NullReplacer

These classes are for replacing NSNull objects from Arrays and Dictionaries when parsing API responses.

How To Install

Download these files and add in your project.

import like this in your project:

#import "NSArray+NullReplacement.h"
#import "NSDictionary+NullReplacement.h"

How to use:

NSDictionary *data=@{@"status":201,@"message":null};
data=[data dictionaryByReplacingNullsWithBlanks];

output will be

@{@"status":201,@"message":@""}

It will remove all Null objects and replace them with empty strings to avoid crashes in your app.

About

These classes are for replacing NSNull objects from Arrays and Dictionaries when parsing API responses.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Morty Proxy This is a proxified and sanitized view of the page, visit original site.