Titanium JIRA Archive
Appcelerator Community (AC)

[AC-1905] iOS: Platform Height on iPhone 5

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionInvalid
Resolution Date2012-10-01T22:08:37.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsTitanium SDK & CLI
LabelsiPhone5, ios, iphone
ReporterNikhil N
AssigneeMauro Parra-Miranda
Created2012-10-01T08:13:04.000+0000
Updated2016-03-08T07:40:49.000+0000

Description

Ti.Platform.displayCaps.platformHeight works as expected up to iPhone 4S (returns 460). However, on the iPhone 5, it returns (460) as well, instead of 560.

Attachments

FileDateSize
Screenshot 2012.10.01 15.22.48.png2012-10-01T22:24:54.000+000029201
Screen Shot 2012-10-01 at 3.14.10 PM.png2012-10-01T22:24:54.000+000033825

Comments

  1. Ingo Muschenetz 2012-10-01

    Can you please provide a code snippet to test?
  2. Daniel Sefton 2012-10-01

    Nikhil, I believe you have not provided a Default-568h@2x.png file in the iPhone resources folder. I just tested this and Ti.Platform.displayCaps.platformHeight returns 480 without the new splash screen image, and 568 with.
       var win = Ti.UI.createWindow({
       	backgroundColor : 'white'
       });
       
       Ti.API.info(Ti.Platform.displayCaps.platformHeight);
       
       win.open();
       
  3. Daniel Sefton 2012-10-01

    I'm invalidating the issue for now, but if the problem still occurs after providing the 568h splash screen, Nikhil is welcome to ask for it to be tested further.
  4. Eric Merriman 2012-10-01

    Using 568h splash on iPhone 5 (6.0) with SDK 2.1.3.v20120928203111 showed the appropriate size in my tests. See attached screen for simulator and device.
  5. Mauro Parra-Miranda 2013-11-22

    Closed per Eric's comments and testing with 3.1.3

JSON Source