您的位置:首页 > 其它

SafariServices(简介)

2016-01-21 14:57 309 查看
当我们想在app中使用网页时以前有两种方案,一种是跳到Safari App;另一种就是自己搭建VC使用WKWebView或UIWebView显示网页。

现在有了第三种方案,使用SafariServices库,它能帮助我们在App中快速继承Safari的界面而无需跳转到Safari App。

Classes

NSObject

SFContentBlockerManager 通知Safari加载过滤规则。

SSReadingList 添加URL链接到Safari浏览器的阅读列表。

UIViewController

SFSafariViewController 浏览Web的界面。

Protocols

SFSafariViewControllerDelegate 监听SFSafariViewController生命周期和添加共享按钮。

Appendix

Sample Code

Swift

Related Documentation

Safari Services Framework Reference

Revision History

时间描述
2016-01-21博文完成

Copyright

CSDN:http://blog.csdn.net/y550918116j

GitHub:https://github.com/937447974/Blog
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: