forked from einsteinx2/iSub-old-swift-port
-
Notifications
You must be signed in to change notification settings - Fork 0
/
IDTwitterAccountChooserViewController.h
32 lines (20 loc) · 987 Bytes
/
IDTwitterAccountChooserViewController.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
//
// IDTwitterAccountChooserViewController.h
// AngelFon
//
// Created by Carlos Oliva on 05-12-12.
// Copyright (c) 2012 iDev Software. All rights reserved.
//
#import <UIKit/UIKit.h>
@class IDTwitterAccountChooserViewController, ACAccount;
typedef void (^IDTwitterAccountChooserViewControllerCompletionHandler)(ACAccount *account);
@protocol IDTwitterAccountChooserViewControllerDelegate <NSObject>
@optional
// if the user hits 'cancel' on the chooser then 'account' will be set to nil
- (void)twitterAccountChooserViewController:(IDTwitterAccountChooserViewController *)controller didChooseTwitterAccount:(ACAccount *)account;
@end
@interface IDTwitterAccountChooserViewController : UINavigationController
- (void)setTwitterAccounts:(NSArray *)twitterAccounts;
- (void)setAccountChooserDelegate:(id <IDTwitterAccountChooserViewControllerDelegate>)delegate;
- (void)setCompletionHandler:(IDTwitterAccountChooserViewControllerCompletionHandler)completionHandler;
@end