From 4fef132dea844db1c7c51c4c7e8f7f0ba04fb576 Mon Sep 17 00:00:00 2001 From: Nathan Walker Date: Wed, 4 Nov 2020 09:02:34 -0800 Subject: [PATCH] fix(ios): ListViewCell.initWithEmptyBackground (#8985) --- nativescript-core/ui/list-view/list-view.ios.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nativescript-core/ui/list-view/list-view.ios.ts b/nativescript-core/ui/list-view/list-view.ios.ts index de406e7aa..923f6a1c6 100644 --- a/nativescript-core/ui/list-view/list-view.ios.ts +++ b/nativescript-core/ui/list-view/list-view.ios.ts @@ -27,7 +27,7 @@ class ListViewCell extends UITableViewCell { public static initWithEmptyBackground(): ListViewCell { const cell = ListViewCell.new(); // Clear background by default - this will make cells transparent - cell.backgroundColor = null; + cell.backgroundColor = UIColor.clearColor; return cell; } @@ -35,7 +35,7 @@ class ListViewCell extends UITableViewCell { initWithStyleReuseIdentifier(style: UITableViewCellStyle, reuseIdentifier: string): this { const cell = super.initWithStyleReuseIdentifier(style, reuseIdentifier); // Clear background by default - this will make cells transparent - cell.backgroundColor = null; + cell.backgroundColor = UIColor.clearColor; return cell; }