I am trying to display my data in a grouped table as shown below:

As you can see, I cleared the background view for the table by writing the following code in viewDidLoad :
customerTable.backgroundView = nil;
Also in my xib, I cleaned the background of my table.
In cellForRowAtIndexPath I set the background color for each cell in the table.
cell.backgroundColor = [UIColor colorWithRed:255.0/255 green:235.0/255 blue:178.0/255 alpha:1];
As a result, I get the above conclusion.
Problem :
The problem I am facing is black corners . I fall into every cell. I know this has something to do with the background of the cell, but nothing works for me. I also tried to clear the cell background by typing the following line of code:
cell.backgroundView = nil;
Can someone help me get rid of these black corners?
Thanks,
Nitish
source share