This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//MARK: AVCaptureMetadataOutputObjectsDelegate | |
func captureOutput(captureOutput: AVCaptureOutput!, didOutputMetadataObjects metadataObjects: [AnyObject]!, fromConnection connection: AVCaptureConnection!) { | |
for metadata in metadataObjects { | |
for barcodeType in self.allowedBarcodes { | |
if metadata.type == barcodeType { | |
let barcode = (metadata as AVMetadataMachineReadableCodeObject).stringValue as String? | |
self.session.stopRunning() | |
if self.delegate != nil { | |
self.delegate!.didScanBarcode(barcode!) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
Show prefs on top of the map | |
*/ | |
-(IBAction) tapShowMenu:(id)sender | |
{ | |
ASMapPrefsViewController* prefsController = [[ASMapPrefsViewController alloc] initWithMap:self.map]; | |
[prefsController setTransitioningDelegate:self]; | |
[prefsController setModalPresentationStyle:UIModalPresentationCustom]; | |
[self presentViewController:prefsController animated:YES completion:NULL]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// ASTransitionAnimator.m | |
// Maps | |
// | |
// Created by Hasan on 6/16/14. | |
// Copyright (c) 2014 AssembleLabs. All rights reserved. | |
// | |
#import "ASSlideUpTransitionAnimator.h" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Hasans-MacBook-Pro-2:mapbox-gl-native hasan$ ls -l | |
total 80 | |
-rw-r--r-- 1 hasan staff 1311 Jun 9 14:33 LICENSE.md | |
-rw-r--r-- 1 hasan staff 3480 Jun 9 14:33 Makefile | |
-rw-r--r-- 1 hasan staff 3960 Jun 9 14:33 README.md | |
drwxr-xr-x 8 hasan staff 272 Jun 9 14:33 bin | |
drwxr-xr-x 11 hasan staff 374 Jun 9 14:33 common | |
-rw-r--r-- 1 hasan staff 1362 Jun 9 14:33 common.gypi | |
drwxr-xr-x 3 hasan staff 102 Jun 9 14:33 config | |
-rwxr-xr-x 1 hasan staff 3749 Jun 9 14:33 configure |
NewerOlder