Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Turned chattyness back on, removed some of the red rectangles of doom

  • Loading branch information...
commit 7de8ab84d9f6cec8cea6fcb5b159c381339984a9 1 parent f279a4b
Mark Dalrymple authored
Showing with 3 additions and 5 deletions.
  1. +2 −4 Classes/BWGestureTrackView.m
  2. +1 −1  Classes/BWTouchTrackView.m
View
6 Classes/BWGestureTrackView.m
@@ -145,7 +145,8 @@ - (void) observeValueForKeyPath: (NSString *) keyPath
if (context == (__bridge void *)self
&& [keyPath isEqualToString: @"state"]) {
- NSNumber *stateNumber = change[@"new"];
+ // NSNumber *stateNumber = change[@"new"];
+ NSNumber *stateNumber = [change objectForKey: @"new"];
UIGestureRecognizerState state = stateNumber.integerValue;
[self recordState: state forRecognizer: object];
@@ -266,9 +267,6 @@ - (void) drawRecognizer: (UIGestureRecognizer *) recognizer
NSString *initial = [NSString stringWithFormat: @"%s",
g_stateInitials[thing.state]];
[self drawText: initial inRect: labelRect];
-
- [[UIColor redColor] set];
- UIRectFrame (labelRect);
}
// Draw the action triggers
View
2  Classes/BWTouchTrackView.m
@@ -11,7 +11,7 @@
kStateScrolledDrawback
} TrackingState;
-static const BOOL kLogTouchActivity = NO; // Sometimes can be too chatty.
+static const BOOL kLogTouchActivity = YES; // Sometimes can be too chatty.
static const CGFloat kPromptTextSize = 36.0;
static const CGFloat kTrackLineWidth = 5.0;
Please sign in to comment.
Something went wrong with that request. Please try again.