title: How can I convert BOOLs into bytes in Objective-C?
body: <p>I have a series of data that can ultimately be represented as <code>BOOLs</code>. I want to convert these <code>BOOLs</code> into <code>bytes</code> so I can put them in an <code>NSData</code> object and send them over a network. I know that I can fit 8 <code>BOOLs</code> into 1 <code>byte</code>. How would I pack this data? Also, once it's received, how would I unpack it back into <code>BOOLs</code>? The networking part is being handled through <code>GameCenter</code>, so I only need to worry about packing and unpacking the data.</p>