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