- (UIEdgeInsets)collectionView:(UICollectionView*)collectionView layout:(UICollectionViewLayout*)collectionViewLayout insetForSectionAtIndex:(NSInteger)section {
NSIntegerresult = 0;
result = [self.contentData[section][kHDClassifyLeftTableViewModelDataKeyChildNode] count];
if(result>1) {
return UIEdgeInsetsMake(0,0,0,0);
}
else
{
returnUIEdgeInsetsMake(0,0,0,(ScreenW-100)/2);
}
}
网友评论