CYLWebViewController
CYLWebViewController copied to clipboard
WebViewControllerDemo,可App类似 Safari 的效果,能随着滑动隐藏底部工具栏
CYLWebViewController
WebViewControllerDemo,类似 Safari 的效果,能随着滑动隐藏底部工具栏,支持下拉刷新
How to use:
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
WebViewController *vc = [[WebViewController alloc] init];
NSURL *baseURL = [NSURL URLWithString:@"http://weibo.com"];
vc.URL = baseURL;
[self.window addSubview:vc.view];
vc.toolbar.hidden = NO;
self.window.rootViewController = vc;
self.window.backgroundColor = [UIColor whiteColor];
[self.window makeKeyAndVisible];
return YES;
}
if you want toolBar to be hidden all the time ,you can do like this
[self.window addSubview:vc.view];
vc.toolbar.hidden = YES;
require PureLayout
the Demo of WebViewController
Check out my weibo for more info.
Check out my twitter for more info.