简体   繁体   English

如何删除UITableView顶部和底部的阴影?

[英]How do I remove the shadows on the top and bottom of UITableView?

I am using UIVisualEffectsView (With Vibrancy) through the IB. 我正在通过IB使用UIVisualEffectsView(充满活力)。 I cant seem to get rid of these shadows. 我似乎无法摆脱这些阴影。

Update: Those aren't shadows. 更新:这些不是阴影。 When a part of the cell becomes invisble, the invisible part is blurred (hence, black) and not the previous content 当单元的一部分变得不可见时,不可见的部分将变得模糊(因此为黑色),而不是先前的内容

图片2


  • I have no code related to shadows 我没有与阴影有关的代码
  • I have disabled tableview bounce 我禁用了tableview反弹
  • I have tried to set the layer shadowOpacity to 0 in all tableviewcell subviews 我试图将所有tableviewcell子视图中的图层shadowOpacity设置为0

Please tell me if I need to provide more information to clarify my doubt. 请告诉我是否需要提供更多信息来澄清我的疑问。

Thanks a ton! 万分感谢!

Solved. 解决了。 I moved my tableview under the navigation bar and tab bar and then set them to translucent. 我将表视图移到导航栏和选项卡栏下,然后将它们设置为半透明。 Now the shadow(like) thing isnt visible. 现在,阴影(类似)的东西不可见了。

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

相关问题 如何自定义UITableview右边,上边和下边框? - How do I customize a UITableview right, top and bottom border? 我知道如何仅在顶部禁用 uitableview 的弹跳 - 但我怎样才能仅在底部执行呢? - I know how to disable bouncing of uitableview on top only - but how can I do it only on the bottom? Swift 3-如何在聊天应用程序的UITableView中从下至上进行页面显示? - Swift 3 - How I Do Page From Bottom To Top In UITableView In A Chat App? 删除Uitableviewcontroller上托管的Uitableview顶部或底部的视图? - Remove view on top or bottom of Uitableview hosted on Uitableviewcontroller? 如何在iOS中的UITableView上删除此底边距? - How can I remove this bottom margin on my UITableView in iOS? 如何将UITableView的顶部粘贴到UISearchBar的底部? - How to stick top of the UITableView to the bottom of the UISearchBar? 我如何定位footerView,使其位于UITableView的底部? - How do i position my footerView so that it is on the bottom of the UITableView? iOS中如何去掉UITableView的底线 - How to remove the bottom line of UITableView in iOS 如何在 UITableView 的顶部添加额外的分隔符? - How do I add an extra separator to the top of a UITableView? 如何检测UITableView何时滚动到最底部/顶部? - How can I detect when a UITableView has been scroll past the very bottom/top?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM