ScrollableView inside TableViewRow not shown
Hi everyone,
I am trying to get a ScrollableView inside a TableViewRow to work on the iPhone Simulator. The row is shown, but the images defined as a part of the ScrollableView are not.
var rows = [];
var tableView = Titanium.UI.createTableView({
backgroundColor: '#E9E9E9'
});
// ... some rows are successfully added to `rows` here
var row = Titanium.UI.createTableViewRow({
height: 350,
selectionStyle: Ti.UI.iPhone.TableViewCellSelectionStyle.NONE
});
var views = [];
for (var i = 0; i < building.images.length; i++) {
var view = Ti.UI.createView({
backgroundImage: building.images[i]
});
views.push(view);
}
var scrollableView = Titanium.UI.createScrollableView({
views: views,
showPagingControl: true,
pagingControlHeight: 20,
maxZoomScale: 1.0,
currentPage: 0,
height: 337,
width: 470
});
row.add(scrollableView);
rows.push(row);
tableView.data = rows;
I verified that the image URLs (building.images
) are correct. Would somebody please explain what I'm doing wrong?
Thanks,
Thomas
Mac OS X 10.6.4/
Titanium Developer 1.2.1/
Titanium SDK 1.3.0/
iOS SDK 3.1
1 Answer
-
did you find the solution ? thanks