[TIMOB-17726] iOS: Support Ti.Platform.displayCaps.logicalDensityFactor
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | High |
| Status | Closed |
| Resolution | Fixed |
| Resolution Date | 2014-10-02T20:24:28.000+0000 |
| Affected Version/s | Release 3.4.0 |
| Fix Version/s | Release 3.4.2, Release 3.5.0, Release 4.0.0 |
| Components | iOS |
| Labels | TCSupport, ios, module_platform |
| Reporter | Malcolm Hollingsworth |
| Assignee | Chee Kiat Ng |
| Created | 2014-09-18T17:57:52.000+0000 |
| Updated | 2014-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;
PR here: https://github.com/appcelerator/titanium_mobile/pull/6183
[~cng] Looks good... need backport to 3.4.1 (cherry-pick this commit and create a PR for the 3_4_X branch).
Additional PR's master - https://github.com/appcelerator/titanium_mobile/pull/6194 3_4_X - https://github.com/appcelerator/titanium_mobile/pull/6195
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.