I want to be able to determine if the number of bytes in an instance of NSMutableData is equal to zero. How would I do this?
Simple:
if([data length] == 0) {
//do something
}
where data is your NSMutableData object.
NSMutableData inherits from NSData, so it gains all of the members of NSData.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With