【iOS】The behavior of the UICollectionViewFlowLayout is not defined because:

當你用collectionView做輪播滾動的時候,發現頭頂會空一塊,或者發現有以下提示的時候,可以用這個解決:


- (void)viewDidLoad {
    [super viewDidLoad];
    [self initCycleView];
    self.automaticallyAdjustsScrollViewInsets = NO;
}


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章