Skip to content

4.0.2

Compare
Choose a tag to compare
@MoLice MoLice released this 12 Oct 13:46
· 126 commits to master since this release

新增功能

  1. 新增 UITabBarAppearance (QMUI),提供方法 qmui_applyItemAppearanceWithBlock: 用于在 iOS 13 下方便地设置 UITabBarAppearance

会带来 QMUI 新旧版本兼容问题的更新

  1. 从 4.0.1 版本开始,QMUI 不再支持以 static framework 方式引入,官网的《开始使用》文档里也已做了相应更新。 从 4.0.3 开始重新支持了 static framework,请使用 QMUI 最新版本。
  2. QMUIHelper 废弃 resourcesBundleresourcesBundleWithName:imageInBundle:withName: 方法。

如何适配新版

  1. 如果你使用 CocoaPods 的方式引入 QMUI,请确保你的 Podfile 里声明了 use_frameworks!
  2. 全局搜索 “[QMUIHelper resourcesBundle”、“[QMUIHelper resourcesBundleWithName”、“[QMUIHelper imageInBundle”,将使用到的地方删除。

Bugfix

  1. #736 修复配置表的 TabBarItemImageColor 会覆盖 UIImageRenderingModeAlwaysOriginal 的 image 颜色的 bug。
  2. #737 修复使用自定义返回按钮后,在某些情况下切界面时可以看到按钮跳动的 bug。
  3. #739 修复 QMUIPopupMenuButtonItem 修改实例的 imageMarginRight 无效的 bug。
  4. #740 修复 iOS 的 bug:在 iOS 13 下通过 UITabBarAppearance 为 tabBarItem 设置字号大于10时,item 的文字会被截断。
  5. #741 去掉 QMUIKit 里对 UIWebView 的使用。
  6. #743 修复使用 UISearchController 配合 qmui_usedAsTableHeaderView,在进入搜索时能看到一个黑色遮罩一闪而过的 bug。
  7. #746 修复以 CocoaPods 方式使用 QMUI,启动时会在 Xcode 控制台输出“[framework] CoreUI: RunTimeThemeRefForBundleIdentifierAndName() couldn't find Assets.car in bundle with identifier: 'QMUI.QMUIResources'”的 log 的问题。
  8. #751 修复 QMUIDialogViewController.buttonTitleAttributes 指定了颜色,在 dialog hide 后再重新 show 时,按钮的颜色被重置回默认颜色的 bug。
  9. #754 修复 iPad 下,或 iPhone 横屏时,配置表里 UITabBar 的样式失效的 bug。
  10. 修复 QMUIThemeImage 在某些情况下可能产生的 crash。
  11. 修复 present 起来的 viewController 在 QMUITheme 发生变化时无法响应 qmui_themeDidChangeByManager:identifier:theme: 的 bug。
  12. 修复 QMUIModalPresentationViewController 内部的 contentViewController 无法响应 qmui_themeDidChangeByManager:identifier:theme: 的 bug。
  13. 更换 UIView (QMUI).qmui_layoutSubviewsBlock 的实现方式,从而修复以 QMUIBadge 的方式显示 UITabBar 未读红点时,可能看到未读红点跳动的 bug。