简体   繁体   English

拖动时更改表格视图单元格背景颜色

[英]Change tableview cell background color when dragged

I wanna opt out dark mode for my tableview cell, but when I drag the cell to reorder them, it has a dark background color, there is no way for me to change it.我想为我的 tableview 单元格选择暗模式,但是当我拖动单元格对它们重新排序时,它具有深色背景颜色,我无法更改它。

self.overrideUserInterfaceStyle = .light

setting overrideUserInterfaceStyle is not working设置 overrideUserInterfaceStyle 不起作用

change in your AppDelegate更改您的 AppDelegate

        window = UIWindow(frame: UIScreen.main.bounds)
    guard let window = window else { return false }
    if #available(iOS 13.0, *) {
        window.overrideUserInterfaceStyle = .light
    }

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM