if (_bigUrlArray.count%2==0) {//如果是偶數
a = i*(_bigUrlArray.count/count);//每個線程圖片初始數
b = (i+1)*(_bigUrlArray.count/count);//每個線程圖片數
}else{//如果是奇數
a = i*((_bigUrlArray.count+1)/count);//每個線程圖片初始數
b = (i+1)*((_bigUrlArray.count+1)/count);//每個線程圖片數
}
if (_bigUrlArray.count%2==0) {//如果是偶數
a = i*(_bigUrlArray.count/count);//每個線程圖片初始數
b = (i+1)*(_bigUrlArray.count/count);//每個線程圖片數
}else{//如果是奇數
a = i*((_bigUrlArray.count+1)/count);//每個線程圖片初始數
b = (i+1)*((_bigUrlArray.count+1)/count);//每個線程圖片數
}
本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。