Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我使用 UIVisualEffectView 作为我的 tableview 的 backgroundView,只是为了模糊效果,一切都很好,除了当我开始将当前视图刷回上一个视图时,tableview 的背景立即变黑,不再模糊。
UIVisualEffectView 实际上是 Apple 框架中的一个 hack。它不是重叠层,它通过处理它们完全替换了自身后面的层。尝试在表格后面添加此效果并清除表格视图的背景。在viewDidLoad方法中
self.tabelView.backgroundColor = [UIColor clearColor];
在cellForRowAtIndexPath方法中
cell.backgroundColor = [UIColor clearColor];