今日のTitanium Tips。略してTi.ps

メモです。

ImagaViewでretina対応

外部の画像をloadするときにretinaディスプレイ対応するのはhiresプロパティ。

var image = Ti.UI.createImageView({
    image  : image_url,
    hires  : true
});

tableViewでハイライトしない

tableViewのrowをタップしたときにハイライトしない方法

tableで指定

allowsSelectionプロパティ。

var table = Ti.UI.craeteTableView({
    allowsSelection : false
});
row毎に指定

selectionStyleプロパティにTi.UI.iPhone.TableViewCellSelectionStyleの定数値を指定

var row = Ti.UI.createTableViewRow({
    selectionStyle : Ti.UI.iPhone.TableViewCellSelectionStyle.NONE
});