Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iPad: [UIScreen mainScreen].bounds returns wrong co-ordinates

[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?

like image 967
Parth Bhatt Avatar asked Aug 19 '11 10:08

Parth Bhatt


1 Answers

Nothing's wrong. This is how it works unfortunately.

See this question: Returning incorrect rectangle on landscape application launch

like image 75
ageektrapped Avatar answered Oct 23 '22 04:10

ageektrapped