3 | #else
4 | #ifndef FOUNDATION_EXPORT
5 | #if defined(__cplusplus)
6 | #define FOUNDATION_EXPORT extern "C"
7 | #else
8 | #define FOUNDATION_EXPORT extern
9 | #endif
10 | #endif
11 | #endif
12 |
13 | #import "NSBundle+TZImagePicker.h"
14 | #import "TZAssetCell.h"
15 | #import "TZAssetModel.h"
16 | #import "TZGifPhotoPreviewController.h"
17 | #import "TZImageCropManager.h"
18 | #import "TZImageManager.h"
19 | #import "TZImagePickerController.h"
20 | #import "TZLocationManager.h"
21 | #import "TZPhotoPickerController.h"
22 | #import "TZPhotoPreviewCell.h"
23 | #import "TZPhotoPreviewController.h"
24 | #import "TZProgressView.h"
25 | #import "TZVideoPlayerController.h"
26 | #import "UIView+Layout.h"
27 |
28 | FOUNDATION_EXPORT double TZImagePickerControllerVersionNumber;
29 | FOUNDATION_EXPORT const unsigned char TZImagePickerControllerVersionString[];
30 |
31 |
--------------------------------------------------------------------------------
/Demo/Pods/Target Support Files/TZImagePickerController/TZImagePickerController.debug.xcconfig:
--------------------------------------------------------------------------------
1 | CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = NO
2 | CONFIGURATION_BUILD_DIR = ${PODS_CONFIGURATION_BUILD_DIR}/TZImagePickerController
3 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1
4 | OTHER_LDFLAGS = $(inherited) -framework "AssetsLibrary" -framework "Photos"
5 | PODS_BUILD_DIR = ${BUILD_DIR}
6 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)
7 | PODS_ROOT = ${SRCROOT}
8 | PODS_TARGET_SRCROOT = ${PODS_ROOT}/TZImagePickerController
9 | PODS_XCFRAMEWORKS_BUILD_DIR = $(PODS_CONFIGURATION_BUILD_DIR)/XCFrameworkIntermediates
10 | PRODUCT_BUNDLE_IDENTIFIER = org.cocoapods.${PRODUCT_NAME:rfc1034identifier}
11 | SKIP_INSTALL = YES
12 | USE_RECURSIVE_SCRIPT_INPUTS_IN_SCRIPT_PHASES = YES
13 |
--------------------------------------------------------------------------------
/Demo/Pods/Target Support Files/TZImagePickerController/TZImagePickerController.modulemap:
--------------------------------------------------------------------------------
1 | framework module TZImagePickerController {
2 | umbrella header "TZImagePickerController-umbrella.h"
3 |
4 | export *
5 | module * { export * }
6 | }
7 |
--------------------------------------------------------------------------------
/Demo/Pods/Target Support Files/TZImagePickerController/TZImagePickerController.release.xcconfig:
--------------------------------------------------------------------------------
1 | CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = NO
2 | CONFIGURATION_BUILD_DIR = ${PODS_CONFIGURATION_BUILD_DIR}/TZImagePickerController
3 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1
4 | OTHER_LDFLAGS = $(inherited) -framework "AssetsLibrary" -framework "Photos"
5 | PODS_BUILD_DIR = ${BUILD_DIR}
6 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)
7 | PODS_ROOT = ${SRCROOT}
8 | PODS_TARGET_SRCROOT = ${PODS_ROOT}/TZImagePickerController
9 | PODS_XCFRAMEWORKS_BUILD_DIR = $(PODS_CONFIGURATION_BUILD_DIR)/XCFrameworkIntermediates
10 | PRODUCT_BUNDLE_IDENTIFIER = org.cocoapods.${PRODUCT_NAME:rfc1034identifier}
11 | SKIP_INSTALL = YES
12 | USE_RECURSIVE_SCRIPT_INPUTS_IN_SCRIPT_PHASES = YES
13 |
--------------------------------------------------------------------------------
/Demo/Pods/Target Support Files/TZImagePickerController/TZImagePickerController.xcconfig:
--------------------------------------------------------------------------------
1 | CONFIGURATION_BUILD_DIR = $PODS_CONFIGURATION_BUILD_DIR/TZImagePickerController
2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1
3 | HEADER_SEARCH_PATHS = "${PODS_ROOT}/Headers/Private" "${PODS_ROOT}/Headers/Public"
4 | OTHER_LDFLAGS = -framework "AssetsLibrary" -framework "Photos"
5 | PODS_BUILD_DIR = $BUILD_DIR
6 | PODS_CONFIGURATION_BUILD_DIR = $PODS_BUILD_DIR/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)
7 | PODS_ROOT = ${SRCROOT}
8 | PODS_TARGET_SRCROOT = ${PODS_ROOT}/TZImagePickerController
9 | PRODUCT_BUNDLE_IDENTIFIER = org.cocoapods.${PRODUCT_NAME:rfc1034identifier}
10 | SKIP_INSTALL = YES
11 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2017
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | 
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 | ------------------------------------------------------------
10 |
11 | # iOS 技术交流
12 | 我创建了一个 微信 iOS 技术交流群,欢迎小伙伴们加入一起交流学习~
13 |
14 | 可以加我微信我拉你进去(备注iOS),我的微信号 wr1204607318
15 |
16 | ## Requirements
17 | - iOS 7.0+
18 | - Xcode 8+
19 |
20 | ## Demo
21 | |拉钩App首页|新浪微博个人中心|qq空间|知乎日报|
22 | |:-:|:-:|:-:|:-:|
23 | |||||
24 |
25 | |QQ我的资料页|蚂蚁森林|连续多个界面导航栏透明|移动导航栏|
26 | |:-:|:-:|:-:|:-:|
27 | |||||
28 |
29 | ## Installation
30 | > **CocoaPods**
31 | > pod 'WRNavigationBar','~>1.4.0’
32 | 如果未发现 1.4.0 请更新一下pod
33 |
34 | > **手动拖入**
35 | > 将 WRNavigationBar 文件夹拽入项目中,导入头文件:#import "WRNavigationBar.h"
36 |
37 | ### Use
38 | ✨✨ 一定要看 Demo 中的 AppDelegate 文件 ✨✨
39 |
40 |
41 | // 设置是 全局使用WRNavigationBar,还是局部使用WRNavigationBar,目前默认是全局使用 (局部使用待开发)
42 | [WRNavigationBar wr_widely];
43 | // WRNavigationBar 不会对 blackList 中的控制器有影响
44 | [WRNavigationBar wr_setBlacklist:@[@"SpecialController",
45 | @"TZPhotoPickerController",
46 | @"TZGifPhotoPreviewController",
47 | @"TZAlbumPickerController",
48 | @"TZPhotoPreviewController",
49 | @"TZVideoPlayerController"]];
50 |
51 |
52 |
53 | // 一行代码搞定导航栏颜色
54 | [self wr_setNavBarBarTintColor:[UIColor whiteColor]];
55 | // 一行代码搞定导航栏透明度
56 | [self wr_setNavBarBackgroundAlpha:alpha];
57 | // 一行代码搞定导航栏两边按钮颜色
58 | [self wr_setNavBarTintColor:[UIColor whiteColor]];
59 | // 一行代码搞定导航栏上标题颜色
60 | [self wr_setNavBarTitleColor:[UIColor whiteColor]];
61 | // 一行代码搞定状态栏是 default 还是 lightContent
62 | [self wr_setStatusBarStyle:UIStatusBarStyleLightContent];
63 | // 一行代码搞定导航栏底部分割线是否隐藏
64 | [self wr_setNavBarShadowImageHidden:YES];
65 |
66 |
67 |
68 | // 设置导航栏默认的背景颜色
69 | [WRNavigationBar wr_setDefaultNavBarBarTintColor:MainNavBarColor];
70 | // 设置导航栏所有按钮的默认颜色
71 | [WRNavigationBar wr_setDefaultNavBarTintColor:[UIColor whiteColor]];
72 | // 设置导航栏标题默认颜色
73 | [WRNavigationBar wr_setDefaultNavBarTitleColor:[UIColor whiteColor]];
74 | // 统一设置状态栏样式
75 | [WRNavigationBar wr_setDefaultStatusBarStyle:UIStatusBarStyleLightContent];
76 | // 如果需要设置导航栏底部分割线隐藏,可以在这里统一设置
77 | [WRNavigationBar wr_setDefaultNavBarShadowImageHidden:YES];
78 |
79 |
80 |
81 | # License
82 | WRNavigationBar is available under the MIT license. See the LICENSE file for more info.
83 |
--------------------------------------------------------------------------------
/WRNavigationBar.podspec:
--------------------------------------------------------------------------------
1 |
2 | Pod::Spec.new do |s|
3 |
4 | s.name = "WRNavigationBar"
5 | s.version = "1.4.0"
6 | s.summary = "navigationBar statusBar alpha color"
7 | s.homepage = "https://github.com/wangrui460/WRNavigationBar"
8 | s.license = { :type => "MIT", :file => "LICENSE" }
9 | s.author = { "wangrui460" => "wangruidev@gmail.com" }
10 | s.social_media_url = "http://weibo.com/wangrui460"
11 | s.platform = :ios, "7.0"
12 | s.source = { :git => "https://github.com/wangrui460/WRNavigationBar.git", :tag => s.version }
13 | s.source_files = "Demo/CodeDemo/WRNavigationBar/*.{h,m}"
14 | s.requires_arc = true
15 |
16 | end
17 |
--------------------------------------------------------------------------------
/WRNavigationBar/WRCustomNavigationBar.h:
--------------------------------------------------------------------------------
1 | //
2 | // WRCustomNavigationBar.h
3 | // CodeDemo
4 | //
5 | // Created by wangrui on 2017/10/22.
6 | // Copyright © 2017年 wangrui. All rights reserved.
7 | //
8 | // Github地址:https://github.com/wangrui460/WRNavigationBar
9 |
10 | #import
11 |
12 | @interface WRCustomNavigationBar : UIView
13 |
14 | @property (nonatomic, copy) void(^onClickLeftButton)(void);
15 | @property (nonatomic, copy) void(^onClickRightButton)(void);
16 |
17 | @property (nonatomic, copy) NSString *title;
18 | @property (nonatomic, strong) UIColor *titleLabelColor;
19 | @property (nonatomic, strong) UIFont *titleLabelFont;
20 | @property (nonatomic, strong) UIColor *barBackgroundColor;
21 | @property (nonatomic, strong) UIImage *barBackgroundImage;
22 |
23 | + (instancetype)CustomNavigationBar;
24 |
25 | - (void)wr_setBottomLineHidden:(BOOL)hidden;
26 | - (void)wr_setBackgroundAlpha:(CGFloat)alpha;
27 | - (void)wr_setTintColor:(UIColor *)color;
28 |
29 | // 默认返回事件
30 | //- (void)wr_setLeftButtonWithNormal:(UIImage *)normal highlighted:(UIImage *)highlighted title:(NSString *)title titleColor:(UIColor *)titleColor;
31 | //- (void)wr_setLeftButtonWithImage:(UIImage *)image title:(NSString *)title titleColor:(UIColor *)titleColor;
32 | - (void)wr_setLeftButtonWithNormal:(UIImage *)normal highlighted:(UIImage *)highlighted;
33 | - (void)wr_setLeftButtonWithImage:(UIImage *)image;
34 | - (void)wr_setLeftButtonWithTitle:(NSString *)title titleColor:(UIColor *)titleColor;
35 |
36 | //- (void)wr_setRightButtonWithNormal:(UIImage *)normal highlighted:(UIImage *)highlighted title:(NSString *)title titleColor:(UIColor *)titleColor;
37 | //- (void)wr_setRightButtonWithImage:(UIImage *)image title:(NSString *)title titleColor:(UIColor *)titleColor;
38 | - (void)wr_setRightButtonWithNormal:(UIImage *)normal highlighted:(UIImage *)highlighted;
39 | - (void)wr_setRightButtonWithImage:(UIImage *)image;
40 | - (void)wr_setRightButtonWithTitle:(NSString *)title titleColor:(UIColor *)titleColor;
41 |
42 |
43 |
44 | @end
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
--------------------------------------------------------------------------------
/screenshots/QQ我的资料页.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wangrui460/WRNavigationBar/17893f1c37c90abf5514b22e34ae2b7223c75caf/screenshots/QQ我的资料页.gif
--------------------------------------------------------------------------------
/screenshots/WRNavigationBar.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wangrui460/WRNavigationBar/17893f1c37c90abf5514b22e34ae2b7223c75caf/screenshots/WRNavigationBar.png
--------------------------------------------------------------------------------
/screenshots/apps.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wangrui460/WRNavigationBar/17893f1c37c90abf5514b22e34ae2b7223c75caf/screenshots/apps.png
--------------------------------------------------------------------------------
/screenshots/mysl.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wangrui460/WRNavigationBar/17893f1c37c90abf5514b22e34ae2b7223c75caf/screenshots/mysl.gif
--------------------------------------------------------------------------------
/screenshots/mysl滑动.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wangrui460/WRNavigationBar/17893f1c37c90abf5514b22e34ae2b7223c75caf/screenshots/mysl滑动.gif
--------------------------------------------------------------------------------
/screenshots/qq空间.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wangrui460/WRNavigationBar/17893f1c37c90abf5514b22e34ae2b7223c75caf/screenshots/qq空间.gif
--------------------------------------------------------------------------------
/screenshots/处理右滑中断后.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wangrui460/WRNavigationBar/17893f1c37c90abf5514b22e34ae2b7223c75caf/screenshots/处理右滑中断后.gif
--------------------------------------------------------------------------------
/screenshots/处理右滑返回手势后.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wangrui460/WRNavigationBar/17893f1c37c90abf5514b22e34ae2b7223c75caf/screenshots/处理右滑返回手势后.gif
--------------------------------------------------------------------------------
/screenshots/导航栏显示图片.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wangrui460/WRNavigationBar/17893f1c37c90abf5514b22e34ae2b7223c75caf/screenshots/导航栏显示图片.gif
--------------------------------------------------------------------------------
/screenshots/导航栏显示渐变色.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wangrui460/WRNavigationBar/17893f1c37c90abf5514b22e34ae2b7223c75caf/screenshots/导航栏显示渐变色.gif
--------------------------------------------------------------------------------
/screenshots/拉钩App首页.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wangrui460/WRNavigationBar/17893f1c37c90abf5514b22e34ae2b7223c75caf/screenshots/拉钩App首页.gif
--------------------------------------------------------------------------------
/screenshots/效果图.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wangrui460/WRNavigationBar/17893f1c37c90abf5514b22e34ae2b7223c75caf/screenshots/效果图.png
--------------------------------------------------------------------------------
/screenshots/新浪微博个人中心.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wangrui460/WRNavigationBar/17893f1c37c90abf5514b22e34ae2b7223c75caf/screenshots/新浪微博个人中心.gif
--------------------------------------------------------------------------------
/screenshots/未处理右滑中断.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wangrui460/WRNavigationBar/17893f1c37c90abf5514b22e34ae2b7223c75caf/screenshots/未处理右滑中断.gif
--------------------------------------------------------------------------------
/screenshots/未处理右滑返回手势.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wangrui460/WRNavigationBar/17893f1c37c90abf5514b22e34ae2b7223c75caf/screenshots/未处理右滑返回手势.gif
--------------------------------------------------------------------------------
/screenshots/知乎日报.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wangrui460/WRNavigationBar/17893f1c37c90abf5514b22e34ae2b7223c75caf/screenshots/知乎日报.gif
--------------------------------------------------------------------------------
/screenshots/移动导航栏.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wangrui460/WRNavigationBar/17893f1c37c90abf5514b22e34ae2b7223c75caf/screenshots/移动导航栏.gif
--------------------------------------------------------------------------------
/screenshots/自定义导航栏.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wangrui460/WRNavigationBar/17893f1c37c90abf5514b22e34ae2b7223c75caf/screenshots/自定义导航栏.gif
--------------------------------------------------------------------------------
/screenshots/蚂蚁森林.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wangrui460/WRNavigationBar/17893f1c37c90abf5514b22e34ae2b7223c75caf/screenshots/蚂蚁森林.gif
--------------------------------------------------------------------------------
/screenshots/连续多个界面导航栏透明.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wangrui460/WRNavigationBar/17893f1c37c90abf5514b22e34ae2b7223c75caf/screenshots/连续多个界面导航栏透明.gif
--------------------------------------------------------------------------------