QMUIConfigurationMacros.h 25 KB

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