Search code examples
iosuitableviewstyling

How do you remove the UITableView Edit cell drop shadow?


I have an image of what is happening:

enter image description here

How do I get rid of that drop-shadow?


Solution

  • Try this in cellForRowAtIndexPath, Its works like Charm !!!!

    cell.layer.shadowOffset = CGSizeMake(0, 0);
    cell.layer.shadowColor = [[UIColor clearColor] CGColor];
    cell.layer.shadowRadius = 0;
    cell.layer.shadowOpacity = 0.0f;