Inherits from UIButton
Declared in TWTRLogInButton.h

Overview

A Button which launches the sign in to Twitter flow when tapped.

Properties

logInCompletion

The completion block to be called with a TWTRSession if successful, and a NSError if logging in failed or was canceled.

@property (nonatomic, copy) TWTRLogInCompletion logInCompletion

Declared In

TWTRLogInButton.h

Class Methods

buttonWithLogInCompletion:

Returns a new log in button which launches Twitter log in when tapped and calls completion when logging in succeeds or fails.

+ (instancetype)buttonWithLogInCompletion:(TWTRLogInCompletion)completion

Parameters

completion

The completion to be called with a TWTRSession if successful, and a NSError if logging in failed or was canceled.

Return Value

An initialized TWTRLogInButton.

Discussion

Internally, this button simply calls [Twitter logInWithCompletion:].

Declared In

TWTRLogInButton.h