Reputation: 2287
I want to create UIView with bounds that will be the same size as physical screen size of iphone6/iphone 6 plus, and run this in ipad air(v1)
Now, I read this info :
Size for iPhone 6 Plus with @3x scaling (Apple name: Retina HD 5.5), Coordinate space: 414 x 736 points and 1242 x 2208 pixels, 401 ppi, screen physical size is 2.7 x 4.8 in or 68 x 122 mm.
Size for iPhone 6 with @2x scaling (Apple name: Retina HD 4.7), Coordinate space: 375 x 667 points and 750 x 1334 pixels, 326 ppi, screen physical size is 2.3 x 4.1 in or 58 x 104 mm.
What is the correct bounds/coordinate space I need to set in my UIView that will show on the ipad, the physical screen size for iphone 6/iphone 6 plus ?
Upvotes: 0
Views: 347
Reputation: 2697
You should take coordinate space values as bound size for your view and align it as you want, for iphone 6+ it is 414 x 736 and for 6 it is 375 x 667.
Upvotes: 0