title: NSData from UInt8
body: <p>I have recently found a source code in swift and I am trying to get it to objective-C. The one thing I was unable to understand is this:</p>
  
  <pre><code>var theData:UInt8!
  
  theData = 3;
  NSData(bytes: [theData] as [UInt8], length: 1)
  </code></pre>
  
  <p>Can anybody help me with the Obj-C equivalent?</p>
  
  <p>Just to give you some context, I need to send UInt8 to a CoreBluetooth peripheral (CBPeripheral) as UInt8. Float or integer won't work because the data type would be too big.</p>