Hi, I am using titanium sdk version 2.1.0.GA IOS simulator host operating system is MacOS. Titanium Studio, build: 2.1.0.201206251749. I am doing something which is very trivial and used to work flawlessly. But its not working now. below is the code snippet.
var LocaWin = Titanium.UI.createWindow({ navBarHidden : false, width : '100%', height : '100%', backgroundColor: '#a58d1e' }); //alert("ok"); LocaWin.add(aSlider); var topRightButtonNew = Ti.UI.createButton({ systemButton: Ti.UI.iPhone.SystemButton.EDIT }); LocaWin.rightNavButton = topRightButtonNew; LocaWin.open();The above snippet is not able to show rightNavButton. It is not showing the statusbar also on which the button is usually rendered in my other codes. I have tried editing width,hieghts,changing colours,styles of window. Am i doing sthing wrong? The slider is rendered though. Please help.This is so frustrating.Thanks in advance
1 Answer
Accepted Answer
A simple window has no navbar. You have 3 options:
- create a navgroup and navgroup.open(localWin)
- open it in modal Mode
localWin.open({ modal: true}); - build a custom navbar (toolbar)
Your Answer
Think you can help? Login to answer this question!