开发者

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

开发者 https://www.devze.com 2023-03-29 00:47 出处:网络
[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).

[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 b开发者_开发知识库e wrong?


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

See this question: Returning incorrect rectangle on landscape application launch

0

精彩评论

暂无评论...
验证码 换一张
取 消