nativescript-timedatepicker
nativescript-timedatepicker copied to clipboard
action bar title not showing after click on the timedatepicker button
Hi,
i currently have app which use the timedatepicker.
after click on the timedatepicker, it will refresh the page. however, after refresh, my action bar is missing. why did this happen? this only happen for ios. for android is working fine.
exports.onbtnStartTap = function(args) {
var r_year;
var r_month;
var r_day;
var r_hour;
var r_hour;
var r_minute; var mCallback2 = function(result) {
if (result) {
r_hour = result.substring(11, 13);
r_minute = result.substring(14, 16);
btnStart.text = r_year + "-" + r_month + "-" + r_day + " " + r_hour + ":" + r_minute + ":00";
setDate();
refreshPage();
}
};
var mCallback = function(result) {
if (result) {
PickerManager.registerCallback(mCallback2, null, null);
PickerManager.init(mCallback2, null, null);
//console.log("runhere showTimePickerDialog");
PickerManager.showTimePickerDialog();
r_year = result.substring(6, 10);
r_month = result.substring(3, 5);
r_day = result.substring(0, 2);
}
};
`