5
Sto cercando di arrotondare solo gli angoli in alto a destra e sinistra della mia tableview. Sto usando il codice qui sotto e sembra solo di essere arrotondamento alto a sinistra ...Come arrotondare solo gli angoli su un UITableView?
CAShapeLayer *topLayer = [CAShapeLayer layer];
UIBezierPath *roundedPath =
[UIBezierPath bezierPathWithRoundedRect:self.bounds byRoundingCorners:UIRectCornerTopRight | UIRectCornerTopLeft cornerRadii:CGSizeMake(9.f, 9.0f)];
topLayer.path = [roundedPath CGPath];
http: // StackOverflow .com/a/5826698/855738 Ho usato questa risposta per fare più o meno la stessa cosa – BBog
Sappi che è un vecchio post, ma assicurati di averlo. [tableView.layer setMasksToBound: YES] e dovrebbe essere bello e dandy –
Vedere la risposta accettata [qui] [1]. Potrebbe essere lo stesso problema. [1]: http://stackoverflow.com/questions/26934231/uiview-in-cell-cant-round-right-hand-corners –