user686483
user686483

Reputation: 1506

MTD StyledStringElement has a white background after IOS 7.0 upgrade

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;

Upvotes: 0

Views: 148

Answers (1)

Krumelur
Krumelur

Reputation: 33058

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

Upvotes: 2

Related Questions