Explorar o código

update UILabel example

Jonas Budelmann %!s(int64=11) %!d(string=hai) anos
pai
achega
61a7a00ad4
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      MasonryExamples/Masonry iOS Examples/MASExampleLabelView.m

+ 1 - 1
MasonryExamples/Masonry iOS Examples/MASExampleLabelView.m

@@ -50,7 +50,7 @@ static UIEdgeInsets const kPadding = {10, 10, 10, 10};
     [self.bigButton mas_makeConstraints:^(MASConstraintMaker *make) {
         make.top.equalTo(self).insets(kPadding);
         make.right.equalTo(self).insets(kPadding);
-        // you don't need to define height or width as some UIView's such as UIButtons, UIImageViews and a few others have intrinsicContentSize
+        make.width.equalTo(@100);
     }];
 
     [self.shortLabel mas_makeConstraints:^(MASConstraintMaker *make) {