def still_image_output
    @still_image_output ||= AVCaptureStillImageOutput.alloc.init.tap do |output|
      settings = { 'AVVideoCodecKey' => AVVideoCodecJPEG }
      output.setOutputSettings(settings)
    end
  end
def still_image_output
    @still_image_output ||= AVCaptureStillImageOutput.alloc.init.tap do |output|
      settings = { 'AVVideoCodecKey' => AVVideoCodecJPEG }
      output.setOutputSettings(settings)
    end
  end
def still_image_output @still_image_output ||= AVCaptureStillImageOutput . alloc . init . tap do | output | settings = { 'AVVideoCodecKey' => AVVideoCodecJPEG } output . setOutputSettings ( settings ) end end
iOS 4-9
iOS 4 - 9