0
votes

I want to add top left and top right corner round at first cell and bottom left,right corner round at last cell

I set param corners for cell

enter image description here

and draw corner round use UIBezierPath and CAShapeLayer at layoutSubviews

It works fine at iphone6 screen size

enter image description here

But i did not work at other Screen Size seem cell did not update it's width at 6plus size

iphone6 plus size

here iphone5 screen size miss top left and bottom left corner

Please help me , tried many way didn't find why

iphone5 size

1
try to call it inside DispatchQueue.main.async {}JuicyFruit
@JuicyFruit perfect~~!!!, thank you so much!icefox
added as answer. glad I could helpJuicyFruit

1 Answers

2
votes

I've faced similar problem and applying mask inside

DispatchQueue.main.async {
    //draw
}

block helped.