Skip to content

Instantly share code, notes, and snippets.

View keith-kurak's full-sized avatar

Keith Kurak keith-kurak

View GitHub Profile
@keith-kurak
keith-kurak / objcsnippet.m
Created December 1, 2016 15:15
Test Objective C snippet
//start scanning when the Scan button is pushed down (touch down)
- (IBAction)startScanning:(id)sender {
if(![self.session isRunning])
{
[self.barcodeScanAreaView.layer addSublayer:_prevLayer];
[_session startRunning];
[self.barcodeScanAreaView bringSubviewToFront:_highlightView]; //isn't necessary at this point because the line gets removed before anyone sees it. Could be useful if there was a delay before shutting down the view and recording the scan
}
}
//stop scanning when the button is pushed up (inside button) (touch up inside)
#########################
# This gist is meant to be used to install everything needed to get up and running with the Ionic Framework on Windows using Chocolatey (http://chocolatey.org)
# Read "How to use this Gist File" section below for instructions.
#########################
#########################
# NOTE : for those familiar with Chocolatey, there are a couple of custom packages used as part of the install that are not published and are waiting on maintainers to make updates to their packages.
#########################