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:

enter image description here

how fix that?

make sure table view's background color clear , check cell.opaque = no;


Comments

Popular posts from this blog

how to insert data php javascript mysql with multiple array session 2 -

multithreading - Exception in Application constructor -

windows - CertCreateCertificateContext returns CRYPT_E_ASN1_BADTAG / 8009310b -