Skip to content

Files

Latest commit

author
Nathan Totten
Jul 20, 2015
f54abec · Jul 20, 2015

History

History
10 lines (10 loc) · 440 Bytes

File metadata and controls

10 lines (10 loc) · 440 Bytes
A0Lock *lock = [[MyApplication sharedInstance] lock];
A0LockViewController *controller = [lock newLockViewController];
controller.onAuthenticationBlock = ^(A0UserProfile *profile, A0Token *token) {
    // Do something with token & profile. e.g.: save them.
    // And dismiss the ViewController
    [self dismissViewControllerAnimated:YES completion:nil];
};
[self presentViewController:controller animated:YES completion:nil];