Ti.UI.NOTIFICATION_DURATION_LONG无法在iOS中运行?

问题描述 投票:0回答:1
var myToastNotification = Ti.UI.createNotification();

myToastNotification.message = 'login Successfull';

myToastNotification.duration = Ti.UI.NOTIFICATION_DURATION_LONG;

我尝试了上面的代码来实现toast。它适用于Android但不适用于iOS。

titanium appcelerator appcelerator-titanium appcelerator-mobile
1个回答
1
投票

此属性仅适用于Android。

NOTIFICATION_DURATION_LONG : 
Specifies a long duration for an Android Toast notification (Titanium.UI.Notification).
© www.soinside.com 2019 - 2024. All rights reserved.