0

I want to authorize a user for my iphone app using Twitter. I would like to use sharekit to do this for simplicity but I am missing something fundamental. My understanding is that the way you do this is as follows:

        service=[[SHKTwitter alloc] init];
        [service authorize];

What is not clear to me is how I get notified once the authorization process is complete. When I execute this code, a modal view controller pops up and the user grants access via twitter. Authorization is successfully made and the modal view controller is dismissed. What I don't see is any way for me to be notified once all this is complete? What am I missing?

4

1 回答 1

1

您可以检查 SHKOAuthSharer 中的两种方法(如果您使用 OAuth 进行授权): 1. - tokenAuthorizeView: didFinishWithSuccess: 2. - tokenAuthorizeCancelledView:

他们在授权视图关闭时被调用。所以你可以把你自己的委托回调放在这里。

或查看此https://github.com/ideashower/ShareKit/issues/187

于 2011-06-15T08:53:34.357 回答