// // SinaWeiboAuthorizeView.h // sinaweibo_ios_sdk // // Created by Wade Cheng on 4/19/12. // Copyright (c) 2012 SINA. All rights reserved. // #import #import @protocol SinaWeiboAuthorizeViewDelegate; @interface SinaWeiboAuthorizeView : UIView { UIWebView *webView; UIButton *closeButton; UIView *modalBackgroundView; UIActivityIndicatorView *indicatorView; UIInterfaceOrientation previousOrientation; id delegate; NSString *appRedirectURI; NSDictionary *authParams; } @property (nonatomic, assign) id delegate; - (id)initWithAuthParams:(NSDictionary *)params delegate:(id)delegate; - (void)show; - (void)hide; @end @protocol SinaWeiboAuthorizeViewDelegate - (void)authorizeView:(SinaWeiboAuthorizeView *)authView didRecieveAuthorizationCode:(NSString *)code; - (void)authorizeView:(SinaWeiboAuthorizeView *)authView didFailWithErrorInfo:(NSDictionary *)errorInfo; - (void)authorizeViewDidCancel:(SinaWeiboAuthorizeView *)authView; @end