Split NSData objects into other NSData objects with a given size
- by Cedric Vandendriessche
I'm having an NSData object of approximately 1000kb big. Now I want to transfer this via bluetooth. This would be better if I have let's say 10 objects of 100kb. It comes to mind that I should use the -subdataWithRange: method of NSData.
I haven't really worked with NSRange. Well I know how it works, but then to read from a given location with the…