Changing the translatesAutoresizingMaskIntoConstraints property of a UICollectionReusableView that is managed by a UICollectionView is not supported, and will result in incorrect self-sizing. View: <ZLCollectionReusableView: 0x1077e9d40; baseClass = UICollectionReusableView; frame = (0 0; 557.143 121); layer = <CALayer: 0x282a6e680>>
控制台报以下错误,我搜了一下, 是设置translatesAutoresizingMaskIntoConstraints = false才会出现的。
Changing the translatesAutoresizingMaskIntoConstraints property of a UICollectionReusableView that is managed by a UICollectionView is not supported, and will result in incorrect self-sizing. View: <ZLCollectionReusableView: 0x1077e9d40; baseClass = UICollectionReusableView; frame = (0 0; 557.143 121); layer = <CALayer: 0x282a6e680>>