{"id":15030748,"url":"https://github.com/wangrui460/wrnavigationbar","last_synced_at":"2025-05-14T20:10:24.467Z","repository":{"id":41612338,"uuid":"87681605","full_name":"wangrui460/WRNavigationBar","owner":"wangrui460","description":"超简单！！！ 一行代码设置状态栏、导航栏按钮、标题、颜色、透明度，移动等    WRNavigationBar which allows you to change NavigationBar's appearance dynamically","archived":false,"fork":false,"pushed_at":"2021-07-19T07:30:51.000Z","size":64437,"stargazers_count":2979,"open_issues_count":7,"forks_count":601,"subscribers_count":63,"default_branch":"master","last_synced_at":"2025-05-07T18:03:58.391Z","etag":null,"topics":["alpha","customnavigation","ltnavigationbar","navigation","navigationbar","scroll","statusbar","title"],"latest_commit_sha":null,"homepage":"http://www.jianshu.com/p/540a7e6f7b40","language":"Objective-C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wangrui460.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-04-09T04:02:44.000Z","updated_at":"2025-04-27T02:01:25.000Z","dependencies_parsed_at":"2022-08-16T08:50:12.660Z","dependency_job_id":null,"html_url":"https://github.com/wangrui460/WRNavigationBar","commit_stats":null,"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wangrui460%2FWRNavigationBar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wangrui460%2FWRNavigationBar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wangrui460%2FWRNavigationBar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wangrui460%2FWRNavigationBar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wangrui460","download_url":"https://codeload.github.com/wangrui460/WRNavigationBar/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254219374,"owners_count":22034397,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["alpha","customnavigation","ltnavigationbar","navigation","navigationbar","scroll","statusbar","title"],"created_at":"2024-09-24T20:14:12.893Z","updated_at":"2025-05-14T20:10:19.458Z","avatar_url":"https://github.com/wangrui460.png","language":"Objective-C","readme":"![image](https://github.com/wangrui460/WRNavigationBar/raw/master/screenshots/WRNavigationBar.png)\n\n\u003cp align=\"center\"\u003e\n\u003ca href=\"https://github.com/wangrui460/WRNavigationBar\"\u003e\u003cimg src=\"https://img.shields.io/badge/platform-iOS%208.0%2B-ff69b5152950834.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://github.com/wangrui460/WRNavigationBar\"\u003e\u003cimg src=\"https://img.shields.io/cocoapods/v/WRNavigationBar.svg?style=flat\"\u003e\u003c/a\u003e\n\u003ca href=\"https://github.com/wangrui460/WRNavigationBar_swift\"\u003e\u003cimg src=\"https://img.shields.io/badge/Swift-compatible-orange.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://github.com/wangrui460/WRNavigationBar/blob/master/LICENSE\"\u003e\u003cimg src=\"https://img.shields.io/badge/license-MIT-green.svg?style=flat\"\u003e\u003c/a\u003e\n\n------------------------------------------------------------\n\n# iOS 技术交流\n我创建了一个 微信 iOS 技术交流群，欢迎小伙伴们加入一起交流学习~\n\t\n可以加我微信我拉你进去（备注iOS），我的微信号 wr1204607318\n\t\n## Requirements\n- iOS 7.0+\n- Xcode 8+\n\n## Demo\n|拉钩App首页|新浪微博个人中心|qq空间|知乎日报|\n|:-:|:-:|:-:|:-:|\n|![](https://github.com/wangrui460/WRNavigationBar/raw/master/screenshots/拉钩App首页.gif)|![](https://github.com/wangrui460/WRNavigationBar/raw/master/screenshots/新浪微博个人中心.gif)|![](https://github.com/wangrui460/WRNavigationBar/raw/master/screenshots/qq空间.gif)|![](https://github.com/wangrui460/WRNavigationBar/raw/master/screenshots/知乎日报.gif)|\n\n|QQ我的资料页|蚂蚁森林|连续多个界面导航栏透明|移动导航栏|\n|:-:|:-:|:-:|:-:|\n|![](https://github.com/wangrui460/WRNavigationBar/raw/master/screenshots/QQ我的资料页.gif)|![](https://github.com/wangrui460/WRNavigationBar/raw/master/screenshots/蚂蚁森林.gif)|![](https://github.com/wangrui460/WRNavigationBar/raw/master/screenshots/连续多个界面导航栏透明.gif)|![](https://github.com/wangrui460/WRNavigationBar/raw/master/screenshots/移动导航栏.gif)|\n\n## Installation\n\u003e **CocoaPods**\n\u003e pod 'WRNavigationBar','~\u003e1.4.0’\n如果未发现 1.4.0 请更新一下pod\n\n\u003e **手动拖入**\n\u003e 将 WRNavigationBar 文件夹拽入项目中，导入头文件：#import \"WRNavigationBar.h\"\n\n### Use\n✨✨ 一定要看 Demo 中的 AppDelegate 文件 ✨✨\n\n\u003cpre\u003e\u003ccode\u003e\n// 设置是 全局使用WRNavigationBar，还是局部使用WRNavigationBar，目前默认是全局使用 （局部使用待开发）\n[WRNavigationBar wr_widely];\n// WRNavigationBar 不会对 blackList 中的控制器有影响\n[WRNavigationBar wr_setBlacklist:@[@\"SpecialController\",\n\t\t\t\t @\"TZPhotoPickerController\",\n\t\t\t\t @\"TZGifPhotoPreviewController\",\n\t\t\t\t @\"TZAlbumPickerController\",\n\t\t\t\t @\"TZPhotoPreviewController\",\n\t\t\t\t @\"TZVideoPlayerController\"]];\n\u003c/code\u003e\u003c/pre\u003e\n\n\u003cpre\u003e\u003ccode\u003e\n// 一行代码搞定导航栏颜色\n[self wr_setNavBarBarTintColor:[UIColor whiteColor]];\n// 一行代码搞定导航栏透明度\n[self wr_setNavBarBackgroundAlpha:alpha];\n// 一行代码搞定导航栏两边按钮颜色\n[self wr_setNavBarTintColor:[UIColor whiteColor]];\n// 一行代码搞定导航栏上标题颜色\n[self wr_setNavBarTitleColor:[UIColor whiteColor]];\n// 一行代码搞定状态栏是 default 还是 lightContent\n[self wr_setStatusBarStyle:UIStatusBarStyleLightContent];\n// 一行代码搞定导航栏底部分割线是否隐藏\n[self wr_setNavBarShadowImageHidden:YES];\n\u003c/code\u003e\u003c/pre\u003e\n\n\u003cpre\u003e\u003ccode\u003e\n// 设置导航栏默认的背景颜色\n[WRNavigationBar wr_setDefaultNavBarBarTintColor:MainNavBarColor];\n// 设置导航栏所有按钮的默认颜色\n[WRNavigationBar wr_setDefaultNavBarTintColor:[UIColor whiteColor]];\n// 设置导航栏标题默认颜色\n[WRNavigationBar wr_setDefaultNavBarTitleColor:[UIColor whiteColor]];\n// 统一设置状态栏样式\n[WRNavigationBar wr_setDefaultStatusBarStyle:UIStatusBarStyleLightContent];\n// 如果需要设置导航栏底部分割线隐藏，可以在这里统一设置\n[WRNavigationBar wr_setDefaultNavBarShadowImageHidden:YES];\n\u003c/code\u003e\u003c/pre\u003e\n\n\n# License\nWRNavigationBar is available under the MIT license. See the LICENSE file for more info.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwangrui460%2Fwrnavigationbar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwangrui460%2Fwrnavigationbar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwangrui460%2Fwrnavigationbar/lists"}