DMPasscode
DMPasscode copied to clipboard
Completion block called while view is presented when the close button is clicked.
- (void)close:(id)sender { [_input resignFirstResponder]; [self dismissViewControllerAnimated:YES completion:nil]; [_delegate canceled]; }
In this method the delegate should be called in the completion block, to make it possible to present new views right away.
That would be the correct way, yes. Thanks for pointing it out.