Ios or cocos2d-x development in Xcode compilation adaptive failure, get the screen size is not accurate

Source: Internet
Author: User

In the development of cocos2d-x, we found that

SetDesignResolutionSize (960366f, 640366f, kResolutionExactFit) is not adaptive. Later, debugging found that it was not an engine problem, but in appController, when the program is started, it gets the bound of window and gets an incorrect value.

[[UIScreenmainScreen] bounds]

It is clearly the simulator of 4 inch, and the height retrieved is always 480, instead of 568. In the simulator of 3.5, both the real machine and the real machine of ipad2 can get the correct height.

Deleted, and Xcode or sdk became paralyzed. It is clearly a 4-inch simulator. The screen size must be 3.5. After being added, everything is normal;

Recently, Apple is suffering from various mechanisms, and the iap sandbox test has an account problem. It is determined that it is an apple-side problem.


Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.