Titanium JIRA Archive
Appcelerator Community (AC)

[AC-6157] showDatePickerDialog function of Picker don't work on iOS

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionInvalid
Resolution Date2019-03-06T11:12:42.000+0000
Affected Version/sAppcelerator Studio 4.3.0
Fix Version/sn/a
ComponentsTitanium SDK & CLI
Labelsalloy, defect, ios
Reporterlibanez
AssigneeShak Hossain
Created2019-03-06T09:49:10.000+0000
Updated2019-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

FileDateSize
IMG_0028.PNG2019-03-06T09:48:42.000+0000126811

Comments

  1. Rakhi Mitro 2019-03-06

    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.
  2. libanez 2019-03-06

    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 !

JSON Source