title: Convert 1 byte to int Objective-C
body: <p>I have an NSData packet with data in it. I need to convert the byte at range 8, 1 to an int. To get the data at that location I do the following.</p>
  
  <pre><code>NSData *byte = [packet subdataWithRange:NSMakeRange(8, 1)];
  </code></pre>
  
  <p>If I NSLog byte </p>
  
  <pre><code>&lt;01&gt;
  </code></pre>
  
  <p>How do I think convert this to an int? This is probably the most basic of questions but I am just not getting it right. </p>
  
  <p>Any help would be appreciated. </p>
  
  <p><strong>Update</strong></p>
  
  <p>With that data the int should be equal to 1. I am not sure if this has anything todo with Endian.</p>