[UIScreen mainScreen].bounds
returns (0,0,768,1024) even when the iPad is in Landscape mode.
It should return (0,0,1024,768) but instead it returns (0,0,768,1024).
What could be wrong?
[UIScreen mainScreen].bounds
returns (0,0,768,1024) even when the iPad is in Landscape mode.
It should return (0,0,1024,768) but instead it returns (0,0,768,1024).
What could be wrong?
Nothing's wrong. This is how it works unfortunately.
See this question: Returning incorrect rectangle on landscape application launch
© 2022 - 2024 — McMap. All rights reserved.
bounds
does depend on the orientation. – Rupee