{ "id": "171231", "key": "AC-5638", "fields": { "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "11", "description": "Is not a bug in our product", "name": "Not Our Bug" }, "resolutiondate": "2018-03-02T18:31:49.000+0000", "created": "2018-03-02T14:10:48.000+0000", "labels": [ "ios", "iphone", "x" ], "versions": [], "issuelinks": [], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2018-03-05T10:06:41.000+0000", "status": { "description": "A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.", "name": "Resolved", "id": "5", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [], "description": "I am using custom navbar for my project and I am using codes for ios 7 top margin as below;\r\n\r\n\r\n{noformat}\r\nvar _IsIos7Plus = false;\r\n\r\nif (Titanium.Platform.name == 'iPhone OS') {\r\n var _Version = Titanium.Platform.version.split(\".\");\r\n var _Major = parseInt(_Version[0], 10);\r\n\r\n if (_Major >= 7) {\r\n _IsIos7Plus = true;\r\n }\r\n}\r\n{noformat}\r\n\r\n\r\nAlloy.Globals.Ios7TopMargin = _IsIos7Plus == true ? 20 : 0;\r\n", "attachment": [ { "id": "64919", "filename": "Snap1.jpg", "author": { "name": "Kerbooo", "key": "kerbooo", "displayName": "Kerberos", "active": true, "timeZone": "Europe/Istanbul" }, "created": "2018-03-02T14:10:33.000+0000", "size": 11621, "mimeType": "image/jpeg" }, { "id": "64918", "filename": "Snap2.jpg", "author": { "name": "Kerbooo", "key": "kerbooo", "displayName": "Kerberos", "active": true, "timeZone": "Europe/Istanbul" }, "created": "2018-03-02T14:10:33.000+0000", "size": 10622, "mimeType": "image/jpeg" } ], "flagged": false, "summary": "Detect iPhone X with Appcelerator", "creator": { "name": "Kerbooo", "key": "kerbooo", "displayName": "Kerberos", "active": true, "timeZone": "Europe/Istanbul" }, "subtasks": [], "reporter": { "name": "Kerbooo", "key": "kerbooo", "displayName": "Kerberos", "active": true, "timeZone": "Europe/Istanbul" }, "environment": null, "comment": { "comments": [ { "id": "435108", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "[~Kerbooo] You can use the following to determine if a device is iPhone X \r\n{code}\r\nvar isiPhoneX = (Ti.Platform.displayCaps.platformWidth === 375 && Ti.Platform.displayCaps.platformHeight === 812 && Ti.Platform.displayCaps.logicalDensityFactor === 3);\r\n{code}\r\n\r\nFor example, https://github.com/hansemannn/studentenfutter-app/blob/master/app/alloy.js#L4\r\n\r\nAlso see AC-5219", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2018-03-02T15:41:45.000+0000", "updated": "2018-03-02T15:42:34.000+0000" }, { "id": "435110", "author": { "name": "Kerbooo", "key": "kerbooo", "displayName": "Kerberos", "active": true, "timeZone": "Europe/Istanbul" }, "body": "I tested it simulator but does not work. Because Ti.Platform.displayCaps.platformHeight gives 667", "updateAuthor": { "name": "Kerbooo", "key": "kerbooo", "displayName": "Kerberos", "active": true, "timeZone": "Europe/Istanbul" }, "created": "2018-03-02T16:01:10.000+0000", "updated": "2018-03-02T16:01:10.000+0000" }, { "id": "435111", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "[~Kerbooo] Check the comments on AC-5219\r\n\r\n{code}\r\nThe issue is that your launch-screens need to match the new sizes. If you are using storyboards, it will adapt automatically, for the old legacy launch-images, you will need to wait until Apple unblocks TIMOB-25269.\r\n{code}", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2018-03-02T16:04:00.000+0000", "updated": "2018-03-02T16:04:00.000+0000" }, { "id": "435123", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "It shows the overall wrong size because you are missing the correct launch-screens. See [the docs|http://docs.appcelerator.com/platform/latest/#!/guide/Icons_and_Splash_Screens-section-src-29004897_IconsandSplashScreens-iOSgraphicassetrequirementsandoptions] for details:\r\n- Default-Portrait-2436h@3x.png\r\n- Default-Landscape-2436h@3x.png\r\n- OR: Storyboards (recommended by Apple these days, also reduces app-size by ~ 2-4mb)", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2018-03-02T18:31:41.000+0000", "updated": "2018-03-02T18:31:41.000+0000" }, { "id": "435126", "author": { "name": "Kerbooo", "key": "kerbooo", "displayName": "Kerberos", "active": true, "timeZone": "Europe/Istanbul" }, "body": "Thank you very much for your support. I have edit (updated) my splah screens it works.", "updateAuthor": { "name": "Kerbooo", "key": "kerbooo", "displayName": "Kerberos", "active": true, "timeZone": "Europe/Istanbul" }, "created": "2018-03-02T19:01:30.000+0000", "updated": "2018-03-05T10:06:41.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }