设控件的右边距为10,设为负数就可以了。如下: [line mas_makeConstraints:^(MASConstraintMaker *make) { make.right.equalTo(@-10); }];