Fixed Issue #100 #101

Merged
merged 1 commit into from Feb 15, 2013

Conversation

Projects
None yet
2 participants
@LeonS
Contributor

LeonS commented Feb 15, 2013

In method + (id)getRootViewController It was possible that another class than a UIViewController Class gets returned, so a call to presendtViewController:.... would result in a crash.
Fix:
Iterating over subviews of UIWindow and checking if the responder is kind of UIViewController and only return it if the result is positive.

arashpayan added a commit that referenced this pull request Feb 15, 2013

@arashpayan arashpayan merged commit 38e6b69 into arashpayan:master Feb 15, 2013

@arashpayan

This comment has been minimized.

Show comment Hide comment
@arashpayan

arashpayan Feb 15, 2013

Owner

Thank you for the contribution!

Owner

arashpayan commented Feb 15, 2013

Thank you for the contribution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment