使用 SVWebViewController 推出浏览器控制器
来源:互联网 发布:网络言论自由的边界 编辑:程序博客网 时间:2024/05/16 18:29
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
- 使用 SVWebViewController 推出浏览器控制器
- SVWebViewController
- HP Swing运动控制器在印度推出
- 推出一个透明的Viewcontroller控制器
- Firefox 3浏览器即将推出
- 美国在线已推出Netscape 7.2新版本浏览器
- google推出的浏览器很不错
- Google 推出浏览器版Google Voice
- Facebook将推出自己的浏览器
- 微软正式推出 Spartan 斯巴达浏览器
- Atmel推出400MHz ARM9嵌入式微控制器SAM9G45
- NavigationController推出下一控制器同时pop自己本身
- UI_UIViewController视图控制器_推出新视图presentViewController(模态推出)
- FormController控制器的使用
- 扩展控制器的使用
- 版本控制器 git使用
- 常见版本控制器使用
- 导航控制器的使用
- C标准函数库
- AudioToolbox 的使用 音频流
- contentSize、contentInset和contentOffset
- android:fastScrollEnabled和android:drawSelectorOnTop(listview当中)
- 公司职位名称及简介
- 使用 SVWebViewController 推出浏览器控制器
- VS2010自动关闭(崩溃)的解决方法(新建工程)
- 创造天才的遗传和环境因素
- C++primer plus第六版课后编程题答案11.1(已修改)
- 2014-04-16学习笔记
- iOS 播放音频的几种方法
- 1999年法国版的《基督山伯爵》国语
- iOS开发中的 ARC
- Android 4.3源码的下载和编译环境的安装及编译