1. 程式人生 > >iOS UILabel適配iOS10

iOS UILabel適配iOS10

在iOS10的系統中UIlabel不會換行需要在檢視的init方法中設定一下約束
[self.contentView mas_makeConstraints:^(MASConstraintMaker *make) {
            make.edges.equalTo(UIEdgeInsetsMake(0, 0, 0, 0));
        }];