Set background image in UIViewController (MonoTouch)

Brian David Berman picture Brian David Berman · Nov 15, 2011 · Viewed 15.9k times · Source

I have a screen called HomeScreen which implements UIViewController. I wish to use a background image for this screen. Is there an event that I can override to set this background image in the HomeScreen.cs file?

Answer

Jason picture Jason · Nov 15, 2011

try setting the BackgroundColor of your View

myview.BackgroundColor = UIColor.FromPatternImage(UIImage.FromFile("myimage.png"));