[self.collectionView performBatchUpdates:^{
[self.collectionView reloadSections:[NSIndexSetindexSetWithIndex:0]];
} completion:nil];
如果不使用[self.collectionView performBatchUpdates:^{
} completion:nil];會刷新其他地方,可能因爲數據問題導致出錯。
shell腳本獲取腳本所在目錄 執行腳本的父目錄不一定是當前的工作目錄。 url=$(dirname $(readlink -f $0))