comparison ios/dw.m @ 2678:24fb27a1e039

iOS: Make UITableViewCell backgrounds clear if not set explicitly. This allows the UITableView background color to show through for the correct display.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Fri, 22 Oct 2021 19:07:59 +0000
parents dd0b29320a3d
children fd223faa7690
comparison
equal deleted inserted replaced
2677:c90b2d7057c8 2678:24fb27a1e039
2201 { 2201 {
2202 if(indexPath.row % 2 == 0) 2202 if(indexPath.row % 2 == 0)
2203 { 2203 {
2204 if(evencolor) 2204 if(evencolor)
2205 [cell setBackgroundColor:evencolor]; 2205 [cell setBackgroundColor:evencolor];
2206 else
2207 [cell setBackgroundColor:[UIColor clearColor]];
2206 } 2208 }
2207 else 2209 else
2208 { 2210 {
2209 if(oddcolor) 2211 if(oddcolor)
2210 [cell setBackgroundColor:oddcolor]; 2212 [cell setBackgroundColor:oddcolor];
2213 else
2214 [cell setBackgroundColor:[UIColor clearColor]];
2211 } 2215 }
2212 } 2216 }
2213 -(UIContextMenuConfiguration *)tableView:(UITableView *)tableView contextMenuConfigurationForRowAtIndexPath:(NSIndexPath *)indexPath point:(CGPoint)point 2217 -(UIContextMenuConfiguration *)tableView:(UITableView *)tableView contextMenuConfigurationForRowAtIndexPath:(NSIndexPath *)indexPath point:(CGPoint)point
2214 { 2218 {
2215 DWWindow *window = (DWWindow *)[self window]; 2219 DWWindow *window = (DWWindow *)[self window];