I am working on an NSData object that is 4840 bytes, and want to omit the first 20 bytes and fetch the rest. Are the substring methods substringFromIndex: / substringToIndex: applicable to NSData?
I am working on an NSData object that is 4840 bytes, and want to
Share
You are close,
NSDatahas a methodsubdataWithRange:. You can make a range with the functionNSMakeRangeand then use that range to produce anNSDatatrimmed as you like.An example: