Skip to content

Commit

Permalink
Fixed conditional for selecting invisible views and the text in the s…
Browse files Browse the repository at this point in the history
…tatus overlay label
  • Loading branch information
Benjamin Pearson committed Jul 14, 2011
1 parent 2ce4ce5 commit 27ec3e5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.svn
4 changes: 2 additions & 2 deletions DCIntrospect/DCIntrospect.m
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ - (void)touchAtPoint:(CGPoint)point
int count = [views count]-1;
while (newView == nil && count >= 0) {
UIView *tempView = [views objectAtIndex:count];
if (tempView.hidden == FALSE && tempView.alpha > 0) {
if (!(tempView.hidden || tempView.alpha == 0)) {
newView = tempView;
}
count--;
Expand Down Expand Up @@ -826,7 +826,7 @@ - (void)toggleSelectingInvisibleViews
{
self.canSelectInvisibleViews = !self.canSelectInvisibleViews;

NSString *string = [NSString stringWithFormat:@"Selecting invisible views is %@", (self.highlightNonOpaqueViews) ? @"on" : @"off"];
NSString *string = [NSString stringWithFormat:@"Selecting invisible views is %@", (self.canSelectInvisibleViews) ? @"on" : @"off"];
if (self.showStatusBarOverlay)
[self showTemporaryStringInStatusBar:string];
else
Expand Down

0 comments on commit 27ec3e5

Please sign in to comment.