チタンで「ポップオーバー」機能を使用しようとしています。
私は台所の流しを通り抜け、自分のアプリケーションでコードを作成しましたが、いくつかの方法で
私はこのエラーが発生しています:
Result of expression 'Ti.UI.iPad' [undefined] is not an object.
私は何が間違っているのか分かりません。
ここに私のコードがあります:
var RLWindow=Ti.UI.createWindow({backgroundColor:'#700'});
var LBBar=Titanium.UI.createView({height:60,left:0,right:0,top:105,backgroundImage:'Images/toolbar.jpeg'});
var ShowNotes=Ti.UI.createButton({color:'blue',font:{fontSize:20,fontWeight:"bold"},right:10,title:'Today Notes',height:40,width:120});
LBBar.add(ShowNotes);
RLWindow.add(LBBar);
ShowNotes.addEventListener('click',function(e){
var popover = Ti.UI.iPad.createPopover({
width:300,
height:250,
title:'Test Popover',
arrowDirection:Ti.UI.iPad.POPOVER_ARROW_DIRECTION_UP
});
popover.show({
view:button,
animated:true
});
});
この状況で私を助けてください..
ありがとうございました