iOS bounds備忘

背景:在系統狀態欄下方加一個UICollectionView,發現UICollectionView自動向下偏移了20px,觀察佈局發現UICollectionView.bounds.y = -20。 原因:UICollectionView所在VC少寫self.automaticallyAdjustsScrollViewInsets = NO; 被系統搞了collectionView.bounds.
相關文章
相關標籤/搜索