1

如何绑定 roboVM ios 代码?

这是ios代码:

/* Designated initializer */

- (id)initWithClientID:(NSString *)clientID 
          clientSecret:(NSString *)clientSecret
           redirectURL:(NSString *)redirectURL
           accessToken:(NSString *)accessToken
          refreshToken:(NSString *)refreshToken;


+ (KAAuth *)sharedAuth;

- (void)registerWithCompletionHandler:(void(^)(NSError *error))completionHandler;
- (void)registerNewAccountWithCompletionHandler:(void(^)(NSError *error))completionHandler;

IOS调用源码:

[[KAAuth sharedAuth] registerNewAccountWithCompletionHandler:^(NSError *error) {
    dispatch_async(dispatch_get_main_queue(), ^{
        [self afterLogin:error];
    });
}];    
4

0 回答 0