简体   繁体   English

左下角重叠单元格

[英]Overlapping cells at bottom left corner

I need bottom cell to be rounded shaped and overlap with above cell.我需要底部单元格为圆形并与上面的单元格重叠。 I tried using corner radius and masked corners but it's not giving result.我尝试使用角半径和蒙面角,但它没有给出结果。 I have attached design, if anyone can help me out.我附上了设计,如果有人可以帮助我。 Thanks谢谢

在此处输入图像描述

Yes, it's possible.是的,这是可能的。 tableViewCell and it's contentView needs to be not clipping to bounds, and your imageView should be clipping to bounds, corner radius, border, etc. you can create a view instead and do layer staff on it instead and place the image view inside. tableViewCell 和它的 contentView 需要不裁剪到边界,并且您的 imageView 应该裁剪到边界、角半径、边框等。您可以创建一个视图并在其上执行图层人员并将图像视图放置在里面。 Also tableview will bring to front cell on select, so you need to disable selection and handle it by your own gesture recognizers, or reorder subviews back each time in layoutSubviews, check out my sample: https://github.com/PhilipDukhov/OverlappingTableView此外,tableview 会将 select 上的单元格带到前面,因此您需要禁用选择并通过自己的手势识别器处理它,或者每次在 layoutSubviews 中重新排序子视图,查看我的示例: https://github.com/PhilipDukhov/OverlappingTable

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

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