2014-02-24 6 views
0

사실, 기본 시스템에서는 정상적으로 작동합니다.UICollectionViewController UIEdgeInsets 유선 동작

총은 dataSource 수는 난 그냥 UIEdgeInsets로 변경 insetForSectionAtIndex에 대한을 떠날 때 7 개 항목

입니다. UIEdgeInsets 작품 동등하게 중앙 CollectionView 미세하지만 눈에 보이는 영역, rightSide 코너에서 누락 된 항목 .. 잘 정렬을 위해 잘 작동 내가 오른쪽으로 변경하는 경우

- (UIEdgeInsets)collectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout*)collectionViewLayout insetForSectionAtIndex:(NSInteger)section{ 
    return UIEdgeInsetsMake(0,192, 0, 0); 
} 

enter image description here

하지만,

- (UIEdgeInsets)collectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout*)collectionViewLayout insetForSectionAtIndex:(NSInteger)section{ 
     return UIEdgeInsetsMake(0,0, 0,192); 
    } 

enter image description here

간단한 질문이되기를 바랍니다. 그러나 나는 해결책을 얻을 수 없었다.

심지어 나는뿐만 아니라 UIContentInsets & & Spacing 연주되지했지만, 운이

답변

0

난 그냥 UICollectionViewController와 주변 연주,하지만 운. 따라서 서브 번호가 UICollectionView

UIViewController을 사용하여 대체 방법 인을 대체 방법으로 선택하십시오.
관련 문제