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

Implement pvc with +[UIViewController _printHierarchy] #61

Merged
merged 1 commit into from Dec 17, 2014

Conversation

kastiglione
Copy link
Contributor

This gives pvc a nice speed improvement.

cc @a2 @arigrant

@a2
Copy link
Contributor

a2 commented Dec 10, 2014

👍

@kastiglione
Copy link
Contributor Author

@a2 Wanna merge this?

@@ -103,6 +103,10 @@ def run(self, arguments, options):
isMac = runtimeHelpers.isMacintoshArch()

if arguments[0] == '__keyWindow_rootVC_dynamic__':
if fb.evaluateBooleanExpression('[UIViewController respondsToSelector:@selector(_printHierarchy)]'):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does @selector(_printHierarchy) work? Should we use NSSelectorFromString(@"_printHierarchy")?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep, @selector has been working for me.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It works at work. I'll try this on a new/empty project and confirm it works.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works as expected even in a brand spanking new app project.

a2 added a commit that referenced this pull request Dec 17, 2014
Implement pvc with +[UIViewController _printHierarchy]
@a2 a2 merged commit 544a173 into master Dec 17, 2014
@kastiglione kastiglione deleted the pvc_printHierarchy branch December 17, 2014 18:20
@kastiglione
Copy link
Contributor Author

Thanks @a2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants