YHLWebViewController - 實現類似微信的 webView 導航效果
YHLWebViewController
Usage
To run the example project, clone the repo, and run pod install
from the Example directory first.
實現類似微信的webView導航效果,左滑返回上個網頁,就像UINavigationController
Requirements
xcode, iOS 6.0+
Installation
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 }];
Author
煜寒了:關注我
Result
License
YHLWebViewController is available under the MIT license. See the LICENSE file for more info.
Thanks
just reference RxWebViewController and used NJKWebViewProgress to make navigation progress, it helps a lot
本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!