· 7 years ago · Sep 10, 2018, 04:44 AM
1- (id)initWithWithClientID: (NSString *) _clientID
2 secret: (NSString *) _secret
3 requestTokenURL: (NSString *) _requestURL
4 authURL: (NSString *) _authorizeURL
5 accessTokenURL: (NSString *) _accessTokenURL
6 andWebView: (WebView *) _webViewLogin {
7
8 if (self = [super init]) {
9
10 clientID = [_clientID copy];
11 secretKey = [_secret copy];
12 requestURL = [_requestURL copy];
13 authURL = [_authorizeURL copy];
14 accessTokenURL = [_accessTokenURL copy];
15 webViewLogin = _webViewLogin;
16
17 userData = [[NSMutableDictionary alloc] init];
18
19 [self doStuff];
20
21 }
22
23 return self;
24}
25
26-(void) doStuff {
27
28 .. ask for user login and passwd ...
29
30 [webViewLogin removeFromSuperview];
31 [webViewLogin close];
32
33}