问题描述
我正在使用UITabBarController
& UITableView
我的目标是删除特定单元格的模糊视图.是的,有一种方法可以添加/删除所有单元格&中的UIBlurEffect
bottom-Tabbbar但是,当然,根本不需要这个.
I am using UITabBarController
& UITableView
My goal is to remove blur view for particular cell. Yes there is a way to add/remove UIBlurEffect
to all the cell & bottom-Tabbbar But of-course don't want this at all .
作为参考,我附上了屏幕截图
For reference i am attaching screenshot
推荐答案
您要的是将除目标单元格外的模糊"视图添加到全屏.由于tableivew恢复了单元格,因此剩下的唯一选择是
What you are asking is to add Blur view to full screen except target cell.as tableivew resues cell so you have only option left is
您可以获取特定单元格的屏幕截图
You can take screenshot of particular cell
这是代码示例
Swift 3-如何拍摄特定UITableView行的屏幕截图
之后,为整个全表视图创建模糊"视图,并将屏幕快照图像添加到目标单元格的Y位置
After that create Blur view for entire full tableview and add screenshot image to Y position of target cell
这篇关于如何删除特定单元格的模糊视图?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!