Tried, workable, with a http://blog.txx.im/blog/2014/03/28/nsnull-category/, someone else's
Use: Copy and paste the following code into the project request class, and then go to the null field, TMD did not jump, too magical
#define Nsnullobjects @[@ "", @0,@{},@[]]@interfaceNSNull(internalnullextention)@end@implementationNSNull(internalnullextention)-(Nsmethodsignature*)Methodsignatureforselector:(SEL)Selector{ Nsmethodsignature*Signature=[SuperMethodsignatureforselector:Selector]; If(!Signature){ For(NSObject*ObjectInchNsnullobjects){ Signature=[ObjectMethodsignatureforselector:Selector]; If(Signature){ Break; } } } ReturnSignature;}-(void)Forwardinvocation:(Nsinvocation*)Aninvocation{ SELAselector=[AninvocationSelector]; For(NSObject*ObjectInchnsnullobjects) { if ([object respondstoselector:aselector ]) { [aninvocation Invokewithtarget:object]; return; } } [self doesnotrecognizeselector:aselector]; } @end
Process null returned by the server