タップするとTwitterへのログインフローを開始するボタン。
継承元 | UIButton |
宣言場所 | TWTRLogInButton.h |
TWTRLogInButton Class ReferenceA Button which launches the sign in to Twitter flow when tapped.
|
logInCompletion
プロパティ
+ buttonWithLogInCompletion:
Tasks
|
成功した場合にはTWTRSession
を、ログインに失敗した場合やキャンセルされた場合はNSError
を渡されて呼び出されるcompletion。
@property (nonatomic, copy) TWTRLogInCompletion logInCompletion
PropertieslogInCompletionThe completion to be called with a @property (nonatomic, copy) TWTRLogInCompletion logInCompletion |
新規に作成したログインボタンを戻り値として返します。ボタンはタップされた時にはTwitterへのログインを開始し、ログインに成功や失敗した時はcompletion を呼び出します。
+ (instancetype)buttonWithLogInCompletion: (TWTRLogInCompletion)completion
completion
成功した場合にはTWTRSession
を、ログインに失敗した場合やキャンセルされた場合はNSError
を渡されて呼び出されるcompletion。
初期化されたTWTRLogInButton
.
内部的に、このボタンは単に [Twitter logInWithCompletion:]
を呼び出しているだけです。
Class MethodsbuttonWithLogInCompletion: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 Parameterscompletion The completion to be called with a Return ValueAn initialized DiscussionInternally, this button simply calls |