Skip to content

Instantly share code, notes, and snippets.

@jamesantrobus
Created December 29, 2010 16:54
Show Gist options
  • Save jamesantrobus/758730 to your computer and use it in GitHub Desktop.
Save jamesantrobus/758730 to your computer and use it in GitHub Desktop.
Failing background colour on UITableView (iPad only)
UITableView tableView = new UITableView(UIScreen.MainScreen.Bounds, UITableViewStyle.Grouped);
//this runs but the default grey colour remains
tableView.BackgroundColor = UIColor.Clear;
//this sets the background as needed
UIView testView = new UIView();
testView.BackgroundColor = UIColor.Clear;
tableView.BackgroundView = testView;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment