I have a
UIViewController and want to apply a background image to fill the entire screen. I have created the images and ensured that they are the correct size but when the View is displayed there is a small white border down the right hand side and along the bottom of the image.
I have tried applying the image using the following code:
View.BackgroundColor = UIColor.FromPatternImage (UIImage.FromFile (Constants.SectionBackgroundPath));
and using a UIImageView
var backgroundImageView = new UIImageView (UIImage.FromFile (backgroundImagePath)); View.AddSubview (backgroundImageView);
but the result is the same. I tried a screenshot but the border is not shown on the resulting image.
Note that the border is visible on the simulator and actual devices (4s, 5s and an iPad Air).
Obviously missing something here - any pointers greatly appreciated.