left/right 与leading/trailing
[self.topBar mas_makeConstraints:^(MASConstraintMaker *make) {
make.leading.trailing.equalTo(self.view);
make.top.equalTo(self.view).offset(STATUSBAR_H);
make.height.equalTo(@(44));
}];

iOS 利用UICollectionView横向滚动、余弦函数曲线特性实现居中放大的卡片浏览工具
https://blog.csdn.net/u013282507/article/details/54136812
网友评论