这段代码需要两秒钟来处理。
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 },
}
endscholarshipTableSize大约在1200左右。如何优化此插入以使其执行得更快?
发布于 2013-07-04 16:04:16
在我更新到最新的corona版本后,时间就好多了。大约2毫秒。
现在我使用的是build 2013.1137
https://stackoverflow.com/questions/17463932
复制相似问题