[TIMOB-28227] iOS: Ti.UI.dateTimeColor is crashing on mac
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | Critical |
| Status | Closed |
| Resolution | Fixed |
| Resolution Date | 2020-11-13T14:38:50.000+0000 |
| Affected Version/s | n/a |
| Fix Version/s | Release 9.3.0 |
| Components | iOS |
| Labels | picker |
| Reporter | Vijay Singh |
| Assignee | Vijay Singh |
| Created | 2020-11-04T19:44:19.000+0000 |
| Updated | 2020-11-13T14:38:51.000+0000 |
Description
Ti.UI.dateTimeColor is crashing on mac with following crash log message.
Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[_UIDatePickerMacCompactView _setTextColor:]: unrecognized selector sent to instance
Test Case-
const dp = Ti.UI.createPicker({
type: Ti.UI.PICKER_TYPE_DATE,
datePickerStyle: Ti.UI.iOS.DATE_PICKER_STYLE_WHEEL,
dateTimeColor: 'red'
});
const win = Ti.UI.createWindow();
win.add(dp);
win.open();
PR - https://github.com/appcelerator/titanium_mobile/pull/12249
FR Passed. Waiting for Jenkins build.
Thanks for the fix Vijay! I haven't tested macOS during my PR, please excuse! New platforms, new times … :-)
merged to master for 9.3.0 target. Backport PR for 9_2_X merged as well.
*Closing ticket*. Fix verified in SDK version
9.3.0.v20201111030553. Test and other information can be found at: https://github.com/appcelerator/titanium_mobile/pull/11955