Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

luke3

macrumors newbie
Original poster
Jun 6, 2012
23
0
I am trying to round only the top right and left corners of my tableview. I am using the code below and it only seems to be rounding the top left corner...

Code:
    CAShapeLayer *topLayer = [CAShapeLayer layer];
UIBezierPath *roundedPath = 
[UIBezierPath bezierPathWithRoundedRect:self.bounds byRoundingCorners:UIRectCornerTopRight | UIRectCornerTopLeft cornerRadii:CGSizeMake(9.f, 9.0f)];    
   topLayer.path = [roundedPath CGPath];
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.