{ "id": "175622", "key": "TIMOB-28181", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "21129", "name": "Release 9.2.2", "archived": false, "released": true, "releaseDate": "2020-10-29" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2020-10-27T21:27:03.000+0000", "created": "2020-10-08T08:37:16.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "datepicker" ], "versions": [], "issuelinks": [ { "id": "58853", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "175702", "key": "TIMOB-28227", "fields": { "summary": "iOS: Ti.UI.dateTimeColor is crashing on mac", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "priority": { "name": "Critical", "id": "1" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2020-11-04T19:47:43.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "Taken from TiSlack:\r\n\r\n---\r\n\r\nSeems like iOS 14 doesn’t like the dateTimeColor property (causes crash when using a picker with type Ti.UI.PICKER_TYPE_DATE). — Is there any alternative way to change a picker’s text color?\r\n\r\n*Crash Error (simulator & device)*\r\n{code}\r\n[INFO] -[_UIDatePickerIOSCompactView setHighlightsToday:]: unrecognized selector sent to instance 0x7f8e3d160e30\r\n[INFO] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[_UIDatePickerIOSCompactView setHighlightsToday:]: unrecognized selector sent to instance 0x7f8e3d160e30'\r\n{code}\r\n\r\n---\r\n\r\nThe reason is that Titanium uses non-offical API's for this (reflection), which is generally okay but error prone for new releases. This year, Apple changed the UIDatePicker styles a lot, causing the initial implementation to break. The fix is to guard iOS 14 as well as the used {{datePickerStyle}} (which I added for 9.2.0).\r\n\r\nPR to fix this: https://github.com/appcelerator/titanium_mobile/pull/12167", "attachment": [], "flagged": false, "summary": "iOS 14: Default date picker crashes when setting \"dateTimeColor\"", "creator": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "environment": "· iOS 14\r\n· MacOS 10.15.7\r\n· TiSDK 9.2.1.GA\r\n· Hyperloop 6.0.2\r\n· Alloy 1.15.2", "closedSprints": [ { "id": 1208, "state": "closed", "name": "2020 Sprint 21", "startDate": "2020-10-12T16:34:00.000Z", "endDate": "2020-10-23T16:34:00.000Z", "completeDate": "2020-10-23T02:32:43.674Z", "originBoardId": 114 }, { "id": 1209, "state": "closed", "name": "2020 Sprint 22", "startDate": "2020-10-27T02:33:00.000Z", "endDate": "2020-11-07T02:33:00.000Z", "completeDate": "2020-11-06T17:45:42.610Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "457232", "author": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR (from [~hknoechel]) - https://github.com/appcelerator/titanium_mobile/pull/12167\r\nTest case - \r\n1. \r\n\r\n{code:java}\r\nconst dp = Ti.UI.createPicker({\r\n\ttype: Ti.UI.PICKER_TYPE_PLAIN,\r\n\tdateTimeColor: 'red'\r\n});\r\n\r\nwin = Ti.UI.createWindow();\r\nwin.add(dp);\r\nwin.open();\r\n{code}\r\n\r\n2. \r\n\r\n{code:java}\r\nconst dp = Ti.UI.createPicker({\r\n\ttype: Ti.UI.PICKER_TYPE_DATE,\r\n\tdatePickerStyle: Ti.UI.iOS.DATE_PICKER_STYLE_WHEELS,\r\n\tdateTimeColor: 'red'\r\n});\r\n\r\nwin = Ti.UI.createWindow();\r\nwin.add(dp);\r\nwin.open();\r\n\r\n{code}", "updateAuthor": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-10-10T02:06:29.000+0000", "updated": "2020-10-10T02:06:29.000+0000" }, { "id": "457319", "author": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "body": "FR Passed\r\nWaiting for Jenkins build", "updateAuthor": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-10-22T23:38:54.000+0000", "updated": "2020-10-22T23:38:54.000+0000" }, { "id": "457326", "author": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "body": "merged to master, and backport PR merged to 9_2_X for 9.2.2 target", "updateAuthor": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "created": "2020-10-23T15:14:26.000+0000", "updated": "2020-10-23T15:14:26.000+0000" }, { "id": "457364", "author": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified on:\r\nMac OS: 10.15.4\r\nSDK: 9.3.0.v20201027065511, 9.2.2.v20201026120850\r\nAppc CLI: 8.1.1\r\nJDK: 11.0.4\r\nNode: 10.17.0\r\nStudio: 6.0.0.202005141803\r\nXcode: 12.0.1\r\niOS Simulator 14.0", "updateAuthor": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-10-27T21:27:03.000+0000", "updated": "2020-10-27T21:27:03.000+0000" }, { "id": "457365", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified the fix with SDK 9.3.0.v20201027120230 & 9.2.2.v20201026120850.\r\nClosing.", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-10-27T21:39:56.000+0000", "updated": "2020-10-27T21:39:56.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }