I am trying to turn a NSArray
of CGPoints
to NSData
. I can't figure out how to do it.
According to http://www.raywenderlich.com/12910/how-to-make-a-simple-playing-card-game-with-multiplayer-and-bluetooth-part-3
NSString *string = @"example"
const char *cString = [string UTF8String];
[self appendBytes:cString length:strlen(cString) + 1];
so with the NSArray
of CGPoint
s, I can't figure out how I can convert to NSData
?