Getting correct getFrameSize() of iPhone 6 and 6 Plus for cocos2d-x 3.x

To get correct resolutions of iPhone 6 and 6 Plus, LaunchImages and IconImages should be correctly set using Asset Catalog as following:

Choose to use "Asset Catalogs" for the App Icons and Launch Images
Choose to use “Asset Catalogs” for the App Icons and Launch Images
Add correct Launch Images to the catalog.
Add correct Launch Images to the catalog.

Then glview->getFrameSize() returns following sizes:

  • iPhone 5: 640×1136
  • iPhone 6/6s: 750×1334
  • iPhone 6/6s Plus: 1242×2208