Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added key for toggling the hidden status #33

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 4 additions & 0 deletions DCIntrospect/DCIntrospect.m
Expand Up @@ -598,6 +598,10 @@ - (BOOL)textView:(UITextView *)textView shouldChangeTextInRange:(NSRange)range r
if (self.currentView.alpha > 0.0f)
self.currentView.alpha -= 0.05f;
}
else if ([string isEqualToString:kDCIntrospectKeysToggleHidden])
{
self.currentView.hidden = !self.currentView.hidden;
}
else if ([string isEqualToString:kDCIntrospectKeysEnterGDB])
{
UIView *view = self.currentView;
Expand Down
2 changes: 2 additions & 0 deletions DCIntrospect/DCIntrospectSettings.h
Expand Up @@ -36,6 +36,8 @@

#define kDCIntrospectKeysIncreaseViewAlpha @"+" // increases/decreases the selected views alpha value
#define kDCIntrospectKeysDecreaseViewAlpha @"-" //
#define kDCIntrospectKeysToggleHidden @"x"


#define kDCIntrospectKeysSetNeedsDisplay @"d" // calls setNeedsDisplay on selected view
#define kDCIntrospectKeysSetNeedsLayout @"l" // calls setNeedsLayout on selected view
Expand Down