why i couldn't stick my button on tabel view footer??
hi, i try to stick a button on my table view footer. i put my button on a view and put my view on footerView property. it seems work well on android, but the button doesn't appear on iphone. could anybody please help me??
here is my code
inline code
var footer = Ti.UI.createView({
height:100
});
var footerButton = Ti.UI.createButton({
title:'Add Row',
color:'#191',
left:125,
width:'auto',
height:'auto'
});
footer.add(footerButton);
var tableViewOptions = {
data: data,
footerView:footer
};
// create table view
var tableview = Titanium.UI.createTableView(
tableViewOptions
);
2 Answers
-
its in the tabgroup hierarcy so after
// create table view
var tableview = Titanium.UI.createTableView(
tableViewOptions
);there is :
Titanium.UI.currentWindow.add(tableview);
-
ok, case solved…
i already have solved this issue
var footerButton = Ti.UI.createButton({ title:'Add Row', color:'#191', left:125, width:'auto', //cannot be filled with 'auto', you must type the value for iphone height:'auto' //cannot be filled with 'auto', you must type the value for iphone });
thx all :D