To run the example project, clone the repo, and run pod install
from the Example directory first.
实现类似微信的webView导航效果,左滑返回上个网页,就像UINavigationController
xcode, iOS 6.0+
YHLWebViewController is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "YHLWebViewController"
定制 navigation bar tint color and back button style 导航栏的颜色和返回按钮样式(详见demo)
导航栏中出现的 返回 和 关闭 ,均会继承你的 navigationController 中对 navigationBar 的设置,比如:
UIColor* tintColor = [UIColor whiteColor];
UIColor* barTintColor = [UIColor blueColor];
self.navigationController.navigationBar.tintColor = tintColor;
self.navigationController.navigationBar.barTintColor = barTintColor;
[self.navigationController.navigationBar setTitleTextAttributes:@{ NSForegroundColorAttributeName:tintColor
}];
煜寒了:关注我
YHLWebViewController is available under the MIT license. See the LICENSE file for more info.
just reference RxWebViewController and used NJKWebViewProgress to make navigation progress, it helps a lot