使用 SVWebViewController 推出浏览器控制器

SVWebViewController

 

简单翻译

https://github.com/samvermette/SVWebViewController

SVWebViewController is a simple inline browser for your iOS 7 app.

SVWebViewController是一个简单别致且易用的浏览器控制器,为iOS7应用而设计.

 

 

SVWebViewController features:

  • iPhone and iPad distinct UIs
  • full landscape orientation support
  • back, forward, stop/refresh and share buttons
  • Open in Safari and Chrome UIActivities
  • navbar title set to the currently visible web page
  • talks with setNetworkActivityIndicatorVisible
  • 专为 iPhone 和 iPad 设计出的别致的 UI
  • 完美支持横屏竖屏
  • 全方位支持后退.前进.暂停.刷新以及分享按钮
  • 类似于 Safari 以及 Chrome 的操作界面
  • 能将导航栏标题设置为当前页面的标题
  • 支持显示状态栏网络加载图标

Manually

  • Drag the SVWebViewController/SVWebViewController folder into your project.
  • #import "SVWebViewController.h"
  • 将文件夹SVWebViewController拖入到你的工程中.
  • 引入头文件"SVWebViewController.h"

Usage

(see sample Xcode project in /Demo)

Just like any UIViewController, SVWebViewController can be pushed into a UINavigationController stack:

就像用任何的UIViewController那样子,SVWebViewController是可以简单的push出来的.

SVWebViewController *webViewController = [[SVWebViewController alloc] initWithAddress:@"http://google.com"];
[self.navigationController pushViewController:webViewController animated:YES];

It can also be presented modally using SVModalWebViewController:

当然,SVWebViewController也可以通过模态的方式推出来.

SVModalWebViewController *webViewController = [[SVModalWebViewController alloc] initWithAddress:@"http://google.com"];
[self presentModalViewController:webViewController animated:YES completion:NULL];

 

注:

亲,不用自己写代码折腾浏览器了,用现成的吧.

 

 

 

 

 

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值