سؤال

if I have this line of code in my app will IOS do an automatic translation to retina?

so:

self.cellView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 1024, 768)];

would automatically become on iPad3:

self.cellView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 2048, 1536)];

Thanks

هل كانت مفيدة؟

المحلول

No. This would create one view the size of the screen, and the other twice the size. Core Graphics handles measurements in points, not pixels.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top