ios - Set colored border for UITableViewCell -
i want tableview cell have colored border , rounded corners. thats tried:
// color [cell.contentview.layer setbordercolor:[uicolor colorwithhexstring:@"dbd7d7"].cgcolor]; // rounded corners [cell.layer setcornerradius:7.0f]; [cell.layer setmaskstobounds:yes]; [cell.layer setborderwidth:2.0f]; cell.layer.bordercolor = [uicolor colorwithhexstring:@"dbd7d7"].cgcolor; however, there odd "white triangles" on right , left borders. please take look:
how fix that?
make sure table view's background color clear , check cell.opaque = no;

Comments
Post a Comment