iosxamarin.iosretina-displayipad-3

Monotouch Ipad3 retina cannot run in full resolution


What do I need to do to run in full resolution? No matter what I do,

UIScreen.MainContent.Bounds => {1024x768}

I am running Monodevelop 2.8.8.4 and I am setting my Deployment Target to 5.1

Any Ideas?

Thanks


Solution

  • Can't verify this since I don't have an iPad3, but on iPhone4's retina display bounds does not tell the whole story.

    You need to take scale into consideration too;

    CGRect bounds = [[UIScreen mainScreen] bounds];
    CGFloat screenScale = [[UIScreen mainScreen] scale];
    CGSize realSize = 
        CGSizeMake(bounds.size.width * scale, bounds.size.height * scale);
    

    That would most likely translate to multiplying width and height by UIScreen.MainScreen.Scale on MonoTouch.