I hereby claim:
- I am zackmcbride on github.
- I am zackm (https://keybase.io/zackm) on keybase.
- I have a public key ASDRg-9p5ec8MQqqVVaFoBQZ_OYRoaRTY17R0BVDte-IcAo
To claim this, I am signing this object:
- (void)pan:(UIPanGestureRecognizer *)pan { | |
CGPoint currentPoint = [pan locationInView:self]; | |
CGPoint midPoint = midpoint(previousPoint, currentPoint); | |
if (pan.state == UIGestureRecognizerStateBegan) { | |
[path moveToPoint:currentPoint]; | |
currentPath = [NSMutableArray arrayWithObject:[NSValue valueWithCGPoint:currentPoint]]; | |
} else if (pan.state == UIGestureRecognizerStateChanged) { | |
[path addQuadCurveToPoint:midPoint controlPoint:previousPoint]; | |
[currentPath addObject:[NSValue valueWithCGPoint:midPoint]]; |
// This method acts as an entry point for the outbox service thread, it will create an additional thread in a continuous loop for the outbox services | |
- (void)startAndObserveOutboxThread { | |
// Only carry out the rest of the method if this isn't the main thread and there isn't a locationServiceObserverThread already running | |
if ([NSThread isMainThread] || outboxServiceObserverThread != nil) { | |
return; | |
} | |
outboxServiceObserverThread = [NSThread currentThread]; |
- (BOOL)insideRegion:(CLRegion *)region location:(CLLocationManager *)manager { | |
if([region containsCoordinate:manager.location.coordinate]){ | |
return true; | |
} | |
return false; | |
} |
I hereby claim:
To claim this, I am signing this object: