swift - bottomsheet 谷歌材料库不适用于 iOS 14
问题描述
曾经在 iOS 13 中运行的代码突然在 iOS 14 中无法运行。
预期结果是显示底部表。然而,真正的结果是我们只是得到了一个巨大的灰色覆盖层,上面什么都没有显示。
let vc = // some view controller.
let bottomSheet = MDCBottomSheetController(contentViewController: vc)
present(bottomSheet, animated: true, completion: nil)
解决方案
推荐阅读
- java - IntelliJ 找不到自定义库 [Maven]
- google-analytics - Google Analytics 在 magento 中显示部分数据
- python - 使用 Python-Requests 发送带有 Django 视图的请求
- java - 忽略 Java Arraylist 中的负值进行计算
- node.js - AWS Lambda 中的 NodeJS 到 Mongo Atlas - 连接失败且没有日志
- python - 如果组的数量大于阈值,则 Pandas groupby 并删除行
- c++ - 哪个占用内存少?一双
或两个“类型”变量 - javascript - 将两个数组值合并到一个对象数组中
- python - What does the high VIF for the constant term (intercept) indicate?
- git - Git push 使用了错误的凭据