title: Convert from the CMSampleBuffer to a UIImage object
body: <p>I tried an example for capture video frames from the camera as images using AV Foundation that is given in documentation  i.e., </p>
  
  <p><a href="http://developer.apple.com/library/ios/#qa/qa1702/_index.html" rel="nofollow">http://developer.apple.com/library/ios/#qa/qa1702/_index.html</a> </p>
  
  <p>But in delegate method to get the UIImage object from the <code>CMSampleBufferRef</code> the method that has given is not building.<br></p>
  
  <p>Means I have imported AVFoundation framework also but it is giving 14 errors like <code>_CVPixelBufferUnlockBaseAddress</code>, referenced from: .</p>
  
  <p>If any one know how to solve please help me.</p>
  
  <p>Thanks in advance .Please if any one know tell to me.</p>