view 必须启用 [self.hotView setTranslatesAutoresizingMaskIntoConstraints:YES]; 这个属性才能有效 转载于:https://www.cnblogs.com/dachengzi/p/4262799.html