//
//
//
//
//
typedef enum {
} UIWebViewNavigationType;
@class UIWebViewInternal;
@protocol UIWebViewDelegate;
UIKIT_CLASS_AVAILABLE(2_0) @interface UIWebView : UIView {
}
@property(nonatomic,assign) id delegate;
@property(nonatomic,readonly,retain) UIScrollView *scrollView __OSX_AVAILABLE_STARTING(__MAC_NA, __IPHONE_5_0);
//加载web内容 有三种方式
- (void)loadRequest:(NSURLRequest *)request;
- (void)loadHTMLString:(NSString *)string baseURL:(NSURL *)baseURL;
- (void)loadData:(NSData *)data MIMEType:(NSString *)MIMEType textEncodingName:(NSString *)textEncodingName baseURL:(NSURL *)baseURL;
@property(nonatomic,readonly,retain) NSURLRequest *request;
- (void)reload;
- (void)stopLoading;
- (void)goBack;
- (void)goForward;
@property(nonatomic,readonly,getter=canGoBack) BOOL canGoBack;
@property(nonatomic,readonly,getter=canGoForward) BOOL canGoForward;
@property(nonatomic,readonly,getter=isLoading) BOOL loading;
//在webview中操作html网页
- (NSString *)stringByEvaluatingJavaSc
@property(nonatomic) BOOL scalesPageToFit;
@property(nonatomic) BOOL detectsPhoneNumbers __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_NA, __MAC_NA, __IPHONE_2_0, __IPHONE_3_0);
@property(nonatomic) UIDataDetectorTypes dataDetectorTypes __OSX_AVAILABLE_STARTING(__MAC_NA, __IPHONE_3_0);
@property (nonatomic) BOOL allowsInlineMediaPlaybac
@property (nonatomic) BOOL mediaPlaybackRequiresUse
@property (nonatomic) BOOL mediaPlaybackAllowsAirPl
@end
@protocol UIWebViewDelegate
@optional
//在js中操作webview中的object-c方法
- (BOOL)webView:(UIWebView *)webView shouldStartLoadWithReque
//web内容已开始加载的回调
- (void)webViewDidStartLoad:(UIWebView *)webView;
//web内容已经加载完毕的回调
- (void)webViewDidFinishLoad:(UIWebView *)webView;
//web内容加载失败的回调
- (void)webView:(UIWebView *)webView didFailLoadWithError:(NSError *)error;
@end