[AC-6157] showDatePickerDialog function of Picker don't work on iOS
GitHub Issue | n/a |
Type | Bug |
Priority | n/a |
Status | Closed |
Resolution | Invalid |
Resolution Date | 2019-03-06T11:12:42.000+0000 |
Affected Version/s | Appcelerator Studio 4.3.0 |
Fix Version/s | n/a |
Components | Titanium SDK & CLI |
Labels | alloy, defect, ios |
Reporter | libanez |
Assignee | Shak Hossain |
Created | 2019-03-06T09:49:10.000+0000 |
Updated | 2019-03-06T11:12:42.000+0000 |
Description
Hello,
I'm encoutering an issue with my mobile app : I have a date popup dialog that let user select begin date and end date, with a button for begin date and a button for end date, when user clicks on a button, i call the Picker.showDatePickerDialog() function to let the system displaying a native dialog to select date on a calendar and time on a clock.
Everything works like a charm on Android but when i tested my app on iOS, it says "undefined is not a function" and when i tried to log popupDate.showDatePickerDialog it displays "undefined".
Is it normal ? How can i make it work for iOS ?
Thank you in advance
Attachments
Hello, Thanks for reporting this issue. Are you using Appcelerator Studio 4.3.0? If that, please download the latest version from [here](https://platform.axway.com/#/product/studio). It would be better to use the latest environment for testing. Open the terminal and run the following comment: *appc use latest* *appc ti sdk install latest* After that, build your project again and let us know how it goes.
Hi Rakhi, Thanks for your answer. Big shame on me, i just saw in the doc (https://docs.appcelerator.com/platform/latest/?mobile=/api/Titanium.UI.Picker) that showDatePickerDialog() is android only function !