-
Notifications
You must be signed in to change notification settings - Fork 1.4k
/
Copy pathQMUIConfigurationMacros.h
274 lines (230 loc) · 24 KB
/
QMUIConfigurationMacros.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
/**
* Tencent is pleased to support the open source community by making QMUI_iOS available.
* Copyright (C) 2016-2021 THL A29 Limited, a Tencent company. All rights reserved.
* Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
* http://opensource.org/licenses/MIT
* Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
*/
//
// QMUIConfigurationMacros.h
// qmui
//
// Created by QMUI Team on 14-7-2.
//
#import "QMUIConfiguration.h"
/**
* 提供一系列方便书写的宏,以便在代码里读取配置表的各种属性。
* @warning 请不要在 + load 方法里调用 QMUIConfigurationTemplate 或 QMUIConfigurationMacros 提供的宏,那个时机太早,可能导致 crash
* @waining 维护时,如果需要增加一个宏,则需要定义一个新的 QMUIConfiguration 属性。
*/
// 单例的宏
#define QMUICMI ({[[QMUIConfiguration sharedInstance] applyInitialTemplate];[QMUIConfiguration sharedInstance];})
/// 标志当前项目是否正使用配置表功能
#define QMUICMIActivated [QMUICMI active]
#pragma mark - Global Color
// 基础颜色
#define UIColorClear [QMUICMI clearColor]
#define UIColorWhite [QMUICMI whiteColor]
#define UIColorBlack [QMUICMI blackColor]
#define UIColorGray [QMUICMI grayColor]
#define UIColorGrayDarken [QMUICMI grayDarkenColor]
#define UIColorGrayLighten [QMUICMI grayLightenColor]
#define UIColorRed [QMUICMI redColor]
#define UIColorGreen [QMUICMI greenColor]
#define UIColorBlue [QMUICMI blueColor]
#define UIColorYellow [QMUICMI yellowColor]
// 功能颜色
#define UIColorLink [QMUICMI linkColor] // 全局统一文字链接颜色
#define UIColorDisabled [QMUICMI disabledColor] // 全局统一文字disabled颜色
#define UIColorForBackground [QMUICMI backgroundColor] // 全局统一的背景色
#define UIColorMask [QMUICMI maskDarkColor] // 全局统一的mask背景色
#define UIColorMaskWhite [QMUICMI maskLightColor] // 全局统一的mask背景色,白色
#define UIColorSeparator [QMUICMI separatorColor] // 全局分隔线颜色
#define UIColorSeparatorDashed [QMUICMI separatorDashedColor] // 全局分隔线颜色(虚线)
#define UIColorPlaceholder [QMUICMI placeholderColor] // 全局的输入框的placeholder颜色
// 测试用的颜色
#define UIColorTestRed [QMUICMI testColorRed]
#define UIColorTestGreen [QMUICMI testColorGreen]
#define UIColorTestBlue [QMUICMI testColorBlue]
// 可操作的控件
#pragma mark - UIControl
#define UIControlHighlightedAlpha [QMUICMI controlHighlightedAlpha] // 一般control的Highlighted透明值
#define UIControlDisabledAlpha [QMUICMI controlDisabledAlpha] // 一般control的Disable透明值
// 按钮
#pragma mark - UIButton
#define ButtonHighlightedAlpha [QMUICMI buttonHighlightedAlpha] // 按钮Highlighted状态的透明度
#define ButtonDisabledAlpha [QMUICMI buttonDisabledAlpha] // 按钮Disabled状态的透明度
#define ButtonTintColor [QMUICMI buttonTintColor] // 普通按钮的颜色
#pragma mark - TextInput
#define TextFieldTextColor [QMUICMI textFieldTextColor] // QMUITextField、QMUITextView 的文字颜色
#define TextFieldTintColor [QMUICMI textFieldTintColor] // QMUITextField、QMUITextView 的tintColor
#define TextFieldTextInsets [QMUICMI textFieldTextInsets] // QMUITextField 的内边距
#define KeyboardAppearance [QMUICMI keyboardAppearance]
#pragma mark - UISwitch
#define SwitchOnTintColor [QMUICMI switchOnTintColor] // UISwitch 打开时的背景色(除了圆点外的其他颜色)
#define SwitchOffTintColor [QMUICMI switchOffTintColor] // UISwitch 关闭时的背景色(除了圆点外的其他颜色)
#define SwitchThumbTintColor [QMUICMI switchThumbTintColor] // UISwitch 中间的操控圆点的颜色
#pragma mark - NavigationBar
#define NavBarUsesStandardAppearanceOnly [QMUICMI navBarUsesStandardAppearanceOnly]
#define NavBarContainerClasses [QMUICMI navBarContainerClasses]
#define NavBarHighlightedAlpha [QMUICMI navBarHighlightedAlpha]
#define NavBarDisabledAlpha [QMUICMI navBarDisabledAlpha]
#define NavBarButtonFont [QMUICMI navBarButtonFont]
#define NavBarButtonFontBold [QMUICMI navBarButtonFontBold]
#define NavBarBackgroundImage [QMUICMI navBarBackgroundImage]
#define NavBarRemoveBackgroundEffectAutomatically [QMUICMI navBarRemoveBackgroundEffectAutomatically]
#define NavBarShadowImage [QMUICMI navBarShadowImage]
#define NavBarShadowImageColor [QMUICMI navBarShadowImageColor]
#define NavBarBarTintColor [QMUICMI navBarBarTintColor]
#define NavBarStyle [QMUICMI navBarStyle]
#define NavBarTintColor [QMUICMI navBarTintColor]
#define NavBarTitleColor [QMUICMI navBarTitleColor]
#define NavBarTitleFont [QMUICMI navBarTitleFont]
#define NavBarLargeTitleColor [QMUICMI navBarLargeTitleColor]
#define NavBarLargeTitleFont [QMUICMI navBarLargeTitleFont]
#define NavBarBarBackButtonTitlePositionAdjustment [QMUICMI navBarBackButtonTitlePositionAdjustment]
#define NavBarBackIndicatorImage [QMUICMI navBarBackIndicatorImage]
#define SizeNavBarBackIndicatorImageAutomatically [QMUICMI sizeNavBarBackIndicatorImageAutomatically]
#define NavBarCloseButtonImage [QMUICMI navBarCloseButtonImage]
#define NavBarLoadingMarginRight [QMUICMI navBarLoadingMarginRight] // titleView里左边的loading的右边距
#define NavBarAccessoryViewMarginLeft [QMUICMI navBarAccessoryViewMarginLeft] // titleView里的accessoryView的左边距
#define NavBarActivityIndicatorViewStyle [QMUICMI navBarActivityIndicatorViewStyle] // titleView loading 的style
#define NavBarAccessoryViewTypeDisclosureIndicatorImage [QMUICMI navBarAccessoryViewTypeDisclosureIndicatorImage] // titleView上倒三角的默认图片
#pragma mark - TabBar
#define TabBarUsesStandardAppearanceOnly [QMUICMI tabBarUsesStandardAppearanceOnly]
#define TabBarContainerClasses [QMUICMI tabBarContainerClasses]
#define TabBarBackgroundImage [QMUICMI tabBarBackgroundImage]
#define TabBarRemoveBackgroundEffectAutomatically [QMUICMI tabBarRemoveBackgroundEffectAutomatically]
#define TabBarBarTintColor [QMUICMI tabBarBarTintColor]
#define TabBarShadowImageColor [QMUICMI tabBarShadowImageColor]
#define TabBarStyle [QMUICMI tabBarStyle]
#define TabBarItemTitleFont [QMUICMI tabBarItemTitleFont]
#define TabBarItemTitleFontSelected [QMUICMI tabBarItemTitleFontSelected]
#define TabBarItemTitleColor [QMUICMI tabBarItemTitleColor]
#define TabBarItemTitleColorSelected [QMUICMI tabBarItemTitleColorSelected]
#define TabBarItemImageColor [QMUICMI tabBarItemImageColor]
#define TabBarItemImageColorSelected [QMUICMI tabBarItemImageColorSelected]
#pragma mark - Toolbar
#define ToolBarUsesStandardAppearanceOnly [QMUICMI toolBarUsesStandardAppearanceOnly]
#define ToolBarContainerClasses [QMUICMI toolBarContainerClasses]
#define ToolBarHighlightedAlpha [QMUICMI toolBarHighlightedAlpha]
#define ToolBarDisabledAlpha [QMUICMI toolBarDisabledAlpha]
#define ToolBarTintColor [QMUICMI toolBarTintColor]
#define ToolBarTintColorHighlighted [QMUICMI toolBarTintColorHighlighted]
#define ToolBarTintColorDisabled [QMUICMI toolBarTintColorDisabled]
#define ToolBarBackgroundImage [QMUICMI toolBarBackgroundImage]
#define ToolBarRemoveBackgroundEffectAutomatically [QMUICMI toolBarRemoveBackgroundEffectAutomatically]
#define ToolBarBarTintColor [QMUICMI toolBarBarTintColor]
#define ToolBarShadowImageColor [QMUICMI toolBarShadowImageColor]
#define ToolBarStyle [QMUICMI toolBarStyle]
#define ToolBarButtonFont [QMUICMI toolBarButtonFont]
#pragma mark - SearchBar
#define SearchBarTextFieldBorderColor [QMUICMI searchBarTextFieldBorderColor]
#define SearchBarTextFieldBackgroundImage [QMUICMI searchBarTextFieldBackgroundImage]
#define SearchBarBackgroundImage [QMUICMI searchBarBackgroundImage]
#define SearchBarTintColor [QMUICMI searchBarTintColor]
#define SearchBarTextColor [QMUICMI searchBarTextColor]
#define SearchBarPlaceholderColor [QMUICMI searchBarPlaceholderColor]
#define SearchBarFont [QMUICMI searchBarFont]
#define SearchBarSearchIconImage [QMUICMI searchBarSearchIconImage]
#define SearchBarClearIconImage [QMUICMI searchBarClearIconImage]
#define SearchBarTextFieldCornerRadius [QMUICMI searchBarTextFieldCornerRadius]
#pragma mark - TableView / TableViewCell
#define TableViewEstimatedHeightEnabled [QMUICMI tableViewEstimatedHeightEnabled] // 是否要开启全局 UITableView 的 estimatedRow(Section/Footer)Height
#define TableViewBackgroundColor [QMUICMI tableViewBackgroundColor] // 普通列表的背景色
#define TableSectionIndexColor [QMUICMI tableSectionIndexColor] // 列表右边索引条的文字颜色
#define TableSectionIndexBackgroundColor [QMUICMI tableSectionIndexBackgroundColor] // 列表右边索引条的背景色
#define TableSectionIndexTrackingBackgroundColor [QMUICMI tableSectionIndexTrackingBackgroundColor] // 列表右边索引条按下时的背景色
#define TableViewSeparatorColor [QMUICMI tableViewSeparatorColor] // 列表分隔线颜色
#define TableViewCellNormalHeight [QMUICMI tableViewCellNormalHeight] // QMUITableView 的默认 cell 高度
#define TableViewCellTitleLabelColor [QMUICMI tableViewCellTitleLabelColor] // cell的title颜色
#define TableViewCellDetailLabelColor [QMUICMI tableViewCellDetailLabelColor] // cell的detailTitle颜色
#define TableViewCellBackgroundColor [QMUICMI tableViewCellBackgroundColor] // 列表 cell 的背景色
#define TableViewCellSelectedBackgroundColor [QMUICMI tableViewCellSelectedBackgroundColor] // 列表 cell 按下时的背景色
#define TableViewCellWarningBackgroundColor [QMUICMI tableViewCellWarningBackgroundColor] // 列表 cell 在提醒状态下的背景色
#define TableViewCellDisclosureIndicatorImage [QMUICMI tableViewCellDisclosureIndicatorImage] // 列表 cell 右边的箭头图片
#define TableViewCellCheckmarkImage [QMUICMI tableViewCellCheckmarkImage] // 列表 cell 右边的打钩checkmark
#define TableViewCellDetailButtonImage [QMUICMI tableViewCellDetailButtonImage] // 列表 cell 右边的 i 按钮
#define TableViewCellSpacingBetweenDetailButtonAndDisclosureIndicator [QMUICMI tableViewCellSpacingBetweenDetailButtonAndDisclosureIndicator] // 列表 cell 右边的 i 按钮和向右箭头之间的间距(仅当两者都使用了自定义图片并且同时显示时才生效)
#define TableViewSectionHeaderBackgroundColor [QMUICMI tableViewSectionHeaderBackgroundColor]
#define TableViewSectionFooterBackgroundColor [QMUICMI tableViewSectionFooterBackgroundColor]
#define TableViewSectionHeaderFont [QMUICMI tableViewSectionHeaderFont]
#define TableViewSectionFooterFont [QMUICMI tableViewSectionFooterFont]
#define TableViewSectionHeaderTextColor [QMUICMI tableViewSectionHeaderTextColor]
#define TableViewSectionFooterTextColor [QMUICMI tableViewSectionFooterTextColor]
#define TableViewSectionHeaderAccessoryMargins [QMUICMI tableViewSectionHeaderAccessoryMargins]
#define TableViewSectionFooterAccessoryMargins [QMUICMI tableViewSectionFooterAccessoryMargins]
#define TableViewSectionHeaderContentInset [QMUICMI tableViewSectionHeaderContentInset]
#define TableViewSectionFooterContentInset [QMUICMI tableViewSectionFooterContentInset]
#define TableViewSectionHeaderTopPadding [QMUICMI tableViewSectionHeaderTopPadding]
#define TableViewGroupedBackgroundColor [QMUICMI tableViewGroupedBackgroundColor] // Grouped 类型的 QMUITableView 的背景色
#define TableViewGroupedSeparatorColor [QMUICMI tableViewGroupedSeparatorColor] // Grouped 类型的 QMUITableView 分隔线颜色
#define TableViewGroupedCellTitleLabelColor [QMUICMI tableViewGroupedCellTitleLabelColor] // Grouped 类型的列表的 QMUITableViewCell 的标题颜色
#define TableViewGroupedCellDetailLabelColor [QMUICMI tableViewGroupedCellDetailLabelColor] // Grouped 类型的列表的 QMUITableViewCell 的副标题颜色
#define TableViewGroupedCellBackgroundColor [QMUICMI tableViewGroupedCellBackgroundColor] // Grouped 类型的列表的 QMUITableViewCell 的背景色
#define TableViewGroupedCellSelectedBackgroundColor [QMUICMI tableViewGroupedCellSelectedBackgroundColor] // Grouped 类型的列表的 QMUITableViewCell 点击时的背景色
#define TableViewGroupedCellWarningBackgroundColor [QMUICMI tableViewGroupedCellWarningBackgroundColor] // Grouped 类型的列表的 QMUITableViewCell 在提醒状态下的背景色
#define TableViewGroupedSectionHeaderFont [QMUICMI tableViewGroupedSectionHeaderFont]
#define TableViewGroupedSectionFooterFont [QMUICMI tableViewGroupedSectionFooterFont]
#define TableViewGroupedSectionHeaderTextColor [QMUICMI tableViewGroupedSectionHeaderTextColor]
#define TableViewGroupedSectionFooterTextColor [QMUICMI tableViewGroupedSectionFooterTextColor]
#define TableViewGroupedSectionHeaderAccessoryMargins [QMUICMI tableViewGroupedSectionHeaderAccessoryMargins]
#define TableViewGroupedSectionFooterAccessoryMargins [QMUICMI tableViewGroupedSectionFooterAccessoryMargins]
#define TableViewGroupedSectionHeaderDefaultHeight [QMUICMI tableViewGroupedSectionHeaderDefaultHeight]
#define TableViewGroupedSectionFooterDefaultHeight [QMUICMI tableViewGroupedSectionFooterDefaultHeight]
#define TableViewGroupedSectionHeaderContentInset [QMUICMI tableViewGroupedSectionHeaderContentInset]
#define TableViewGroupedSectionFooterContentInset [QMUICMI tableViewGroupedSectionFooterContentInset]
#define TableViewGroupedSectionHeaderTopPadding [QMUICMI tableViewGroupedSectionHeaderTopPadding]
#define TableViewInsetGroupedCornerRadius [QMUICMI tableViewInsetGroupedCornerRadius] // InsetGrouped 类型的 UITableView 内 cell 的圆角值
#define TableViewInsetGroupedHorizontalInset [QMUICMI tableViewInsetGroupedHorizontalInset] // InsetGrouped 类型的 UITableView 内的左右缩进值
#define TableViewInsetGroupedBackgroundColor [QMUICMI tableViewInsetGroupedBackgroundColor] // InsetGrouped 类型的 UITableView 的背景色
#define TableViewInsetGroupedSeparatorColor [QMUICMI tableViewInsetGroupedSeparatorColor] // InsetGrouped 类型的 QMUITableView 分隔线颜色
#define TableViewInsetGroupedCellTitleLabelColor [QMUICMI tableViewInsetGroupedCellTitleLabelColor] // InsetGrouped 类型的列表的 QMUITableViewCell 的标题颜色
#define TableViewInsetGroupedCellDetailLabelColor [QMUICMI tableViewInsetGroupedCellDetailLabelColor] // InsetGrouped 类型的列表的 QMUITableViewCell 的副标题颜色
#define TableViewInsetGroupedCellBackgroundColor [QMUICMI tableViewInsetGroupedCellBackgroundColor] // InsetGrouped 类型的列表的 QMUITableViewCell 的背景色
#define TableViewInsetGroupedCellSelectedBackgroundColor [QMUICMI tableViewInsetGroupedCellSelectedBackgroundColor] // InsetGrouped 类型的列表的 QMUITableViewCell 点击时的背景色
#define TableViewInsetGroupedCellWarningBackgroundColor [QMUICMI tableViewInsetGroupedCellWarningBackgroundColor] // InsetGrouped 类型的列表的 QMUITableViewCell 在提醒状态下的背景色
#define TableViewInsetGroupedSectionHeaderFont [QMUICMI tableViewInsetGroupedSectionHeaderFont]
#define TableViewInsetGroupedSectionFooterFont [QMUICMI tableViewInsetGroupedSectionFooterFont]
#define TableViewInsetGroupedSectionHeaderTextColor [QMUICMI tableViewInsetGroupedSectionHeaderTextColor]
#define TableViewInsetGroupedSectionFooterTextColor [QMUICMI tableViewInsetGroupedSectionFooterTextColor]
#define TableViewInsetGroupedSectionHeaderAccessoryMargins [QMUICMI tableViewInsetGroupedSectionHeaderAccessoryMargins]
#define TableViewInsetGroupedSectionFooterAccessoryMargins [QMUICMI tableViewInsetGroupedSectionFooterAccessoryMargins]
#define TableViewInsetGroupedSectionHeaderDefaultHeight [QMUICMI tableViewInsetGroupedSectionHeaderDefaultHeight]
#define TableViewInsetGroupedSectionFooterDefaultHeight [QMUICMI tableViewInsetGroupedSectionFooterDefaultHeight]
#define TableViewInsetGroupedSectionHeaderContentInset [QMUICMI tableViewInsetGroupedSectionHeaderContentInset]
#define TableViewInsetGroupedSectionFooterContentInset [QMUICMI tableViewInsetGroupedSectionFooterContentInset]
#define TableViewInsetGroupedSectionHeaderTopPadding [QMUICMI tableViewInsetGroupedSectionHeaderTopPadding]
#pragma mark - UIWindowLevel
#define UIWindowLevelQMUIAlertView [QMUICMI windowLevelQMUIAlertView]
#define UIWindowLevelQMUIConsole [QMUICMI windowLevelQMUIConsole]
#pragma mark - QMUILog
#define ShouldPrintDefaultLog [QMUICMI shouldPrintDefaultLog]
#define ShouldPrintInfoLog [QMUICMI shouldPrintInfoLog]
#define ShouldPrintWarnLog [QMUICMI shouldPrintWarnLog]
#define ShouldPrintQMUIWarnLogToConsole [QMUICMI shouldPrintQMUIWarnLogToConsole] // 是否在出现 QMUILogWarn 时自动把这些 log 以 QMUIConsole 的方式显示到设备屏幕上
#pragma mark - QMUIBadge
#define BadgeBackgroundColor [QMUICMI badgeBackgroundColor]
#define BadgeTextColor [QMUICMI badgeTextColor]
#define BadgeFont [QMUICMI badgeFont]
#define BadgeContentEdgeInsets [QMUICMI badgeContentEdgeInsets]
#define BadgeOffset [QMUICMI badgeOffset]
#define BadgeOffsetLandscape [QMUICMI badgeOffsetLandscape]
#define UpdatesIndicatorColor [QMUICMI updatesIndicatorColor]
#define UpdatesIndicatorSize [QMUICMI updatesIndicatorSize]
#define UpdatesIndicatorOffset [QMUICMI updatesIndicatorOffset]
#define UpdatesIndicatorOffsetLandscape [QMUICMI updatesIndicatorOffsetLandscape]
#pragma mark - Others
#define AutomaticCustomNavigationBarTransitionStyle [QMUICMI automaticCustomNavigationBarTransitionStyle] // 界面 push/pop 时是否要自动根据两个界面的 barTintColor/backgroundImage/shadowImage 的样式差异来决定是否使用自定义的导航栏效果
#define SupportedOrientationMask [QMUICMI supportedOrientationMask] // 默认支持的横竖屏方向
#define AutomaticallyRotateDeviceOrientation [QMUICMI automaticallyRotateDeviceOrientation] // 是否在界面切换或 viewController.supportedOrientationMask 发生变化时自动旋转屏幕,默认为 NO(仅 iOS 15 及以前版本需要,iOS 16 系统会自动处理,该开关无意义)。
#define DefaultStatusBarStyle [QMUICMI defaultStatusBarStyle] // 默认的状态栏样式,默认值为 UIStatusBarStyleDefault,也即在 iOS 12 及以前是黑色文字,iOS 13 及以后会自动根据当前 App 是否处于 Dark Mode 切换颜色。如果你希望固定为白色,请设置为 UIStatusBarStyleLightContent,固定黑色则设置为 UIStatusBarStyleDarkContent。
#define NeedsBackBarButtonItemTitle [QMUICMI needsBackBarButtonItemTitle] // 全局是否需要返回按钮的title,不需要则只显示一个返回image
#define HidesBottomBarWhenPushedInitially [QMUICMI hidesBottomBarWhenPushedInitially] // QMUICommonViewController.hidesBottomBarWhenPushed 的初始值,默认为 NO,以保持与系统默认值一致,但通常建议改为 YES,因为一般只有 tabBar 首页那几个界面要求为 NO
#define PreventConcurrentNavigationControllerTransitions [QMUICMI preventConcurrentNavigationControllerTransitions] // PreventConcurrentNavigationControllerTransitions : 自动保护 QMUINavigationController 在上一次 push/pop 尚未结束的时候就进行下一次 push/pop 的行为,避免产生 crash
#define NavigationBarHiddenInitially [QMUICMI navigationBarHiddenInitially] // preferredNavigationBarHidden 的初始值,默认为NO
#define ShouldFixTabBarSafeAreaInsetsBug [QMUICMI shouldFixTabBarSafeAreaInsetsBug] // 是否要对 iOS 11 及以后的版本修复当存在 UITabBar 时,UIScrollView 的 inset.bottom 可能错误的 bug(issue #218 #934),默认为 YES
#define ShouldFixSearchBarMaskViewLayoutBug [QMUICMI shouldFixSearchBarMaskViewLayoutBug] // 是否自动修复 UISearchController.searchBar 被当作 tableHeaderView 使用时可能出现的布局 bug(issue #950)
#define DynamicPreferredValueForIPad [QMUICMI dynamicPreferredValueForIPad] // 当 iPad 处于 Slide Over 或 Split View 分屏模式下,宏 `PreferredValueForXXX` 是否把 iPad 视为某种屏幕宽度近似的 iPhone 来取值。
#define IgnoreKVCAccessProhibited [QMUICMI ignoreKVCAccessProhibited] // 是否全局忽略 iOS 13 对 KVC 访问 UIKit 私有属性的限制
#define AdjustScrollIndicatorInsetsByContentInsetAdjustment [QMUICMI adjustScrollIndicatorInsetsByContentInsetAdjustment] // 当将 UIScrollView.contentInsetAdjustmentBehavior 设为 UIScrollViewContentInsetAdjustmentNever 时,是否自动将 UIScrollView.automaticallyAdjustsScrollIndicatorInsets 设为 NO,以保证原本在 iOS 12 下的代码不用修改就能在 iOS 13 下正常控制滚动条的位置。