section여부에 따른 tableview의 row count 계산하기

//table의 row 개수를 계산하는 방법
var total = 0;
for(var i = 0; i < theTable.data.length; i++){
    total = total + theTable.data[i].rowCount;
}

//각각의 row를 얻어오는 방법
var sections = theTable.data;
for(var i = 0; i < sections.length; i++){
    var section = sections[i];
    for(var j = 0; j < section.rowCount; j++){
        var row = section.rows[j];
        Ti.API.debug(JSON.stringify(row));
    }
}

이 링크의 내용을 옮겼습니다. row가 몇개인지 확인할 때 사용하세요.

http://developer.appcelerator.com/question/117594/number-of-rows-in-table


Facebook Group's likes and commnets
JongEun Lee(01-09 14:37) : 종종 rows였는지 row였는지 종종 혼란스러워 기록용으로 남겨봅니다.^^