0

我正在尝试使用此 ane 显示日期选择器

https://github.com/mateuszmackowiak/NativeDialogs

一切正常,但对于 ios7,对话框完全变黑。我尝试了 NativeDatePickerDialog.as 中的主题之类的东西,但没有被重新喜欢。

(或以其他方式(ane)实现日期选择器)。您的帮助将不胜感激。

4

1 回答 1

0

你可以试试ANE-AlertDate Picker

对于警报:

 // Defining your callbacks
 var myCallback1:Function = function():void { trace("Callback 1"); };
 var myCallback2:Function = function():void { trace("Callback 2"); };

 // Display a one-button alert popup
 AirAlert.getInstance().showAlert("My title", "My message", "OK", myCallback1);

 // Display a two-button alert popup
 AirAlert.getInstance().showAlert("My title", "My message", "YES", myCallback1, "NO", myCallback2);

对于日期选择器:

 // Required params
 var currentDate:Date = new Date();
 var callback:Function = function(selectedDate:String):void 
 {
      var date:Date = new Date();
      date.setTime(Date.parse(selectedDate));
      trace("selected date = ", date);
 }

 // Native extension call
 AirDatePicker.instance.displayDatePicker(currentDate, callback);
于 2015-02-19T09:57:26.417 回答