SPTAuthViewController Class Reference
Inherits from | UIViewController |
Declared in | SPTAuthViewController.h |
Overview
A authentication view controller
To present the authentication dialog on top of your view controller, do like this:
authvc.modalPresentationStyle = UIModalPresentationOverCurrentContext;
authvc.modalTransitionStyle = UIModalTransitionStyleCrossDissolve;
self.modalPresentationStyle = UIModalPresentationCurrentContext;
self.definesPresentationContext = YES;
[self presentViewController:authvc animated:NO completion:nil];
Class Methods
authenticationViewController
Creates an authentication view controller for the default application using the authentication information from
SPTAuth
.defaultInstance
+ (SPTAuthViewController *)authenticationViewController
Return Value
The authentication view controller.
Declared In
SPTAuthViewController.h
authenticationViewControllerWithAuth:
Creates an authentication view controller for a specific application.
+ (SPTAuthViewController *)authenticationViewControllerWithAuth:(SPTAuth *)auth
Parameters
- auth
The authentication object, containing the app configuration, pass
nil
if you want to use the authentication information fromSPTAuth
.defaultInstance
Return Value
The authentication view controller.
Declared In
SPTAuthViewController.h