How to assign an empty NSData value and not a NULL value?

How to assign null value to NSData and not NULL?

I did not want to assign zero or nil. I wanted an empty value, not like the code below.

NSData* variable = NULL; // not even assigning to nil NSData* variable = nil; 
+4
source share
2 answers
 NSData *variable = [[NSData alloc] init]; // don't forget to release if not using ARC. 
+17
source
 NSData *data = [[NSData alloc] init]; 
+2
source

All Articles