Skip to content
This repository has been archived by the owner on May 13, 2019. It is now read-only.

KKPasscodeSettingsViewControllerDelegate:passcodeLockWillBePresented #11

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

tiagofernandez
Copy link

I've added an optional method to KKPasscodeSettingsViewControllerDelegate, in order to notify the delegate that the passcode lock view will be on screen. The reason is to allow things like dismissing a popover controller. Additionally, I've unlocked rotation for the passcode view while on iPad.

… on screen.

This feature allows things like dismissing a popover controller on the iPad.
@@ -187,6 +187,8 @@ - (void)tableView:(UITableView*)tableView didSelectRowAtIndexPath:(NSIndexPath*)
nav.navigationBar.barStyle = self.navigationController.navigationBar.barStyle;
}

[self.delegate passcodeLockWillBePresented];
Copy link
Owner

Choose a reason for hiding this comment

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

we should check if the function exists in the delegate before invoking it. perhaps some users won't implement this function

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

Successfully merging this pull request may close these issues.

2 participants