I've an existing iOS App for target Device iPad Air and I want it to run on iPad PRO. It all works fine, but I need an Image to keep same Size (realSize on mm) on both devices.
The resolution of both devices is equal so I don't understand why the Image are bigger on iPad Pro. This is the way I draw the Images.
- (void) drawNewNumberImage {
int index = arc4random()%_allNumbers.count;
while([_currentNumber isEqualToString:[_allNumbers objectAtIndex:index]]) {
index = arc4random()%_allNumbers.count;
}
_currentNumber = [_allNumbers objectAtIndex:index];
int s = _size;
//_imgView.image = [UIImage imageNamed:[_allNumbers objectAtIndex:index]];
_imgView.image = [ImageProvider getPDFVectorImage:[_allNumbers objectAtIndex:index] AndFontSize:s];
CGRect frame = _imgView.frame;
frame.size = CGSizeMake(s, s);
_imgView.frame = frame;
_imgView.center = CGPointMake(CGRectGetWidth(self.view.frame)/2 , CGRectGetHeight(self.contentView.frame)/2);
}
It seems like the iPad Pro just scales up all the App. Is there a way to disable this behavior.