In Java I have a byte array representation which in iOS I have represented as NSData.
Everything works fine - it's just that some access methods seem rather clumsy in iOS compared to Java.
Accessing a single byte in Java: byteArray[i]
while in iOS I keep using this where byteArray is a NSData:
Byte b;
[byteArray getBytes: &b range: NSMakeRange( i, 1 )];
Isn't there a more direct way of writing this similar to Java?