I have a UIViewController in my Monotouch iPhone application and I want to set the background to what you have in a UITableViewStyle.Grouped. However when I use the code below it returns a black screen.
this.View.BackgroundColor = UIColor.GroupTableViewBackgroundColor; // Black screen
this.View.BackgroundColor = UIColor.Red; // Works
I call these in the ViewWillAppear method. If I comment out the GroupTable then the background gets set to Red. When I comment out the second line all I get is a black screen.
Does anyone know why this is? Can you not call UIColor.GroupTableViewBackgroundColor if your not in a UITableViewController?
Thanks
Mike