Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
CoderJYZhu authored May 21, 2018
1 parent 6bdc0df commit 92e05fa
Showing 1 changed file with 42 additions and 1 deletion.
43 changes: 42 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,42 @@
# JYWKWebView
# JYWKWebView

```
@protocol JYWKWebViewDelegate <NSObject>
@optional
/** 页面开始加载时调用 */
- (void)webViewDidStartLoad:(JYWKWebView *)webView;
/** 内容开始返回时调用 */
- (void)webView:(JYWKWebView *)webView didCommitWithURL:(NSURL *)url;
/** 页面加载失败时调用 */
- (void)webView:(JYWKWebView *)webView didFinishLoadWithURL:(NSURL *)url;
/** 页面加载完成之后调用 */
- (void)webView:(JYWKWebView *)webView didFailLoadWithError:(NSError *)error;
/**
返回截取特定点击request类型
*/
- (void)webView:(JYWKWebView *)webView didSelectWithRequestStr:(NSString *)requestStr;
@end
@interface JYWKWebView : UIView
/** JYWKWebViewDelegate */
@property (nonatomic, weak) id<JYWKWebViewDelegate> delegate;
/** 进度条颜色(默认蓝色) */
@property (nonatomic, strong) UIColor *progressViewColor;
/** 进度条是否显示*/
@property (nonatomic , assign) BOOL progressViewHidden;
/** 导航栏标题 */
@property (nonatomic, copy) NSString *navigationItemTitle;
/** 导航栏存在且有穿透效果(默认导航栏存在且有穿透效果) */
@property (nonatomic, assign) BOOL isNavigationBarOrTranslucent;
/** 类方法创建 JYWKWebView */
+ (instancetype)webViewWithFrame:(CGRect)frame;
/** 加载 url */
- (void)loadUrlString:(NSString *)urlString;
/** 加载 web */
- (void)loadRequest:(NSURLRequest *)request;
/** 加载 HTML */
- (void)loadHTMLString:(NSString *)HTMLString;
/** 刷新数据 */
- (void)reloadData;
@end
```

0 comments on commit 92e05fa

Please sign in to comment.