V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
iOS 开发实用技术导航
NSHipster 中文版
http://nshipster.cn/
cocos2d 开源 2D 游戏引擎
http://www.cocos2d-iphone.org/
CocoaPods
http://cocoapods.org/
Google Analytics for Mobile 统计解决方案
http://code.google.com/mobile/analytics/
WWDC
https://developer.apple.com/wwdc/
Design Guides and Resources
https://developer.apple.com/design/
Transcripts of WWDC sessions
http://asciiwwdc.com
Cocoa with Love
http://cocoawithlove.com/
Cocoa Dev Central
http://cocoadevcentral.com/
NSHipster
http://nshipster.com/
Style Guides
Google Objective-C Style Guide
NYTimes Objective-C Style Guide
Useful Tools and Services
Charles Web Debugging Proxy
Smore
CoderSeven
V2EX  ›  iDev

基于 WKWebView 和 UIWebView 实现的仿微信 WebView 功能的页面加载库

  •  
  •   CoderSeven · 2017-09-08 16:50:15 +08:00 · 4326 次点击
    这是一个创建于 2415 天前的主题,其中的信息可能已经有所发展或是发生改变。

    代码参见: https://github.com/DoTalkLily/LYWebViewController 求 star~

    基于 WKWebView 和 UIWebView 封装的 webview。

    feature list:

    1.支持 UIWebView 和 WKWebView

    2.页面加载进度条

    3.顶部导航(类似微信的返回、关闭等)

    4.底部 toolbar

    5.支持转场(手势左右滑动切换网页)

    6.支持唤起 appstore 下载

    7.国际化(支持英文、简体中文、繁体中文)

    8.兼容 iPad

    9.preview(>=iOS9 )

    10.用 chrome、safari 打开网页

    11.清缓存

    12.设置超时时长、缓存策略

    13.自定义 UI ( toolbar 是否展示、进度条颜色等)

    14.下拉刷新(支持自定义样式)

    欢迎提 issue

    3 条回复    2017-09-20 22:12:01 +08:00
    kobe1941
        1
    kobe1941  
       2017-09-11 14:20:27 +08:00
    微信的 webview 印象中比较深的一点是它能记住用户上次访问网页滑动的位置,下次进来还能定位到原位置,感觉还是蛮厉害的
    CoderSeven
        2
    CoderSeven  
    OP
       2017-09-12 10:44:48 +08:00
    @kobe1941 是的,这个挺棒的,后续也试着实现以下~
    CoderSeven
        3
    CoderSeven  
    OP
       2017-09-20 22:12:01 +08:00   ❤️ 1
    @kobe1941 这个已经实现,参见 github~
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2851 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 11:21 · PVG 19:21 · LAX 04:21 · JFK 07:21
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.