【发布时间】:2013-07-02 02:01:01
【问题描述】:
处理此代码需要两秒钟。
print("before loop scholarships:"..system.getTimer())
for i = 1, scholarshipTableSize do
-- Insert the row into the tableView
tableView:insertRow
{
isCategory = false,
rowHeight = 75,
rowColor =
{
default = { 255, 232, 4 },
over = { 0, 158, 255 },
},
lineColor = { 0, 0, 0 },
}
end
scholarshipTableSize 大约为 1200。如何优化此插入以使其执行得更快?
【问题讨论】: