SVWebViewController
简单翻译
https://github.com/samvermette/SVWebViewController
SVWebViewController is a simple inline browser for your iOS 7 app.
SVWebViewController是一个简单别致且易用的浏览器控制器,为iOS7应用而设计.
SVWebViewController features:
setNetworkActivityIndicatorVisible
SVWebViewController/SVWebViewController
folder into
your project.#import "SVWebViewController.h"
SVWebViewController
拖入到你的工程中.SVWebViewController.h
"(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];
注:
亲,不用自己写代码折腾浏览器了,用现成的吧.
使用 SVWebViewController 推出浏览器控制器,布布扣,bubuko.com
使用 SVWebViewController 推出浏览器控制器
原文:http://www.cnblogs.com/YouXianMing/p/3636266.html