llyouss / PAWebView

An component WebView for iOS base on WKWebView
MIT License
182 stars 32 forks source link
component-webview long-press-feature pawebview wkwebview wkwebview-js

PAWebView.

An component WebView for ios

Introduction

PAWeView is an extensible WebView which is built on top of WKWebView, the modern WebKit framework debuted in iOS 8.0. It provides fast Web for developing sophisticated iOS native or hybrid applications.

Sample Project

For a complete example on how to use PAWeView, see the Sample Project.

The Class Structure Chart of PAWeView

Image text

Minimum Requirements

/ 实现 PAWKScriptMessageHandler 代理 /

/** 提供cookies插入,用于loadRequest 网页之前

@param cookie NSHTTPCookie 类型 cookie 需要设置 cookie 的name,value,domain,expiresDate(过期时间,当不设置过期时间,cookie将不会自动清除); cookie 设置expiresDate时使用 [cookieProperties setObject:expiresDate forKey:NSHTTPCookieExpires];将不起作用,原因不明;使用 cookieProperties[expiresDate] = expiresDate; 设置cookies 设置时间。 */

/* 删除单个cookie /

/* 清除所有的cookies /