Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-17726] iOS: Support Ti.Platform.displayCaps.logicalDensityFactor

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2014-10-02T20:24:28.000+0000
Affected Version/sRelease 3.4.0
Fix Version/sRelease 3.4.2, Release 3.5.0, Release 4.0.0
ComponentsiOS
LabelsTCSupport, ios, module_platform
ReporterMalcolm Hollingsworth
AssigneeChee Kiat Ng
Created2014-09-18T17:57:52.000+0000
Updated2014-11-21T19:47:35.000+0000

Description

After discussion on TIMOB-17718, we believe that we should enable Ti.Platform.displayCaps.logicalDensityFactor available under iOS as well and return \[UIScreen mainScreen\].scale;

Comments

  1. Chee Kiat Ng 2014-09-30

    PR here: https://github.com/appcelerator/titanium_mobile/pull/6183
  2. Jon Alter 2014-10-02

    [~cng] Looks good... need backport to 3.4.1 (cherry-pick this commit and create a PR for the 3_4_X branch).
  3. Vishal Duggal 2014-10-02

    Additional PR's master - https://github.com/appcelerator/titanium_mobile/pull/6194 3_4_X - https://github.com/appcelerator/titanium_mobile/pull/6195
  4. Ewan Harris 2014-10-02

    Verified fix on: Mac OSX 10.9.5 Appcelerator Studio, build: 3.4.0.201409261245 Titanium SDK build: 3.4.1.v20141002135200 Titanium CLI, build: 3.4.0 Alloy: 1.5.1 Xcode: 6.1 iPhone 6 device (8.0.2), iPhone 6 Plus simulator (8.1) Queried the property and it returns 2 on an iPhone 6 and returns 3 on an iPhone 6 plus as expected. Closing ticket.

JSON Source