0

I've recently upgraded my app to IOS 7. On one on my screens I'm using MTD StyledStringElement. The elements background is white on IOS 7, and I can't figure out how to change it back to clear. I've tried to set the background color to clear but it's not working for me. If I set the table view to null then the my background does not appear at all.

Thanks in advance.

        tableView.SeparatorColor = UIColor.Clear;
        var cell = base.GetCell(tableView);
        cell.BackgroundView = null;

        tableView.BackgroundColor = UIColor.Clear;
        cell.BackgroundColor = null;
        cell.SelectionStyle = UITableViewCellSelectionStyle.None;
        cell.ContentView.BackgroundColor = null;

        cell.TextLabel.TextColor = UIColor.Clear;
user686483
  • 1,584
  • 6
  • 18
  • 29

1 Answers1

2

I think all the code above dealing with background colors is not necessary.

Just set the BackgroundColor of your StyledStringElement instance to UIColor.Clear.

See for reference the MT.Dialog source on Github

Krumelur
  • 32,180
  • 27
  • 124
  • 263