title: Stretched width for rotated UILabel
body: <p>Sorry i'm really can't figure out how is native iOS design works (i'm usually do Xamarin Forms design).
  I have <code>UIStackView</code></p>
  
  <p><code>UIStackView stackView = new UIStackView(new CGRect(0, 0, View.Frame.Width, View.Frame.Height));</code></p>
  
  <p>then i create <code>UILabel</code>, set <code>AdjustsFontSizeToFitWidth = true</code> because i need auto adjusted font size</p>
  
  <p>after that i apply some rotation to it <code>targetLabel.Transform = CGAffineTransform.MakeRotation(new nfloat(Math.PI * 270 / 180.0));</code> because i need to make vertical text.</p>
  
  <p>and then i add this label to the stack. Of course i have some other setups too but i think they are doesn't matter.</p>
  
  <p>my final step is to set new <code>Frame</code> for <code>UILabel</code> with fixed width. I tried set width by getting stack's height, i tried even set it to constant, but it doesn't work. Width of the label always looks like auto.</p>
  
  <p>this is what i want:</p>
  
  <p><a href="https://i.stack.imgur.com/cxvln.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/cxvln.png" alt="enter image description here"></a></p>
  
  <p>but in fact, the target label is very small.</p>
  
  <p>Full code here: (Note this is TodayExtension)</p>
  
  <pre><code>[Register("CodeBasedViewController")]
      public class CodeBasedViewController : SLComposeServiceViewController, INCWidgetProviding
      {
          UIImage image;
          private UILabel otherLabel;
          private UILabel targetLabel;
  
          public CodeBasedViewController(IntPtr handle) : base(handle)
          {
          }
  
          public override void ViewWillAppear(bool animated)
          {
              base.ViewWillAppear(animated);
  
                  UIStackView stackView = new UIStackView(new CGRect(0, 0, View.Frame.Width, View.Frame.Height));
                  View.AddSubview(stackView);
                  stackView.Axis = UILayoutConstraintAxis.Horizontal;
                  image = new UIImage("picture.png");
                  UIImageView imageView = new UIImageView(image)
                  {
                      ContentMode = UIViewContentMode.ScaleAspectFit
                  };
                  otherLabel = new UILabel
                  {
                      TextColor = UIColor.White,
                      Text = "someTextA",
                      Font = UIFont.SystemFontOfSize(40)
                  };
                  targetLabel = new UILabel
                  {
                      TextColor = UIColor.Black,
                      Text ="4",
                      TextAlignment = UITextAlignment.Left,
                      Font = UIFont.SystemFontOfSize(30),
          AdjustsFontSizeToFitWidth = true,
                      Lines = 1
                  };
                  targetLabel.Transform = CGAffineTransform.MakeRotation(new nfloat(Math.PI * 270 / 180.0));
                  stackView.AddArrangedSubview(imageView);
                  stackView.AddArrangedSubview(otherLabel);
                  stackView.AddArrangedSubview(targetLabel);
                  stackView.Frame = new CGRect(View.Frame.Width / 2, 0,
                      otherLabel .IntrinsicContentSize.Width +
                      targetLabel.IntrinsicContentSize.Width +
                      View.Frame.Height
                      , View.Frame.Height);
                  stackView.Center = View.Center;
  
          targetLabel.Frame = new CGRect(targetLabel.Frame.X, targetLabel.Frame.Y, 150, 150); //test constants
  
          }
  
          public void WidgetPerformUpdate(Action&lt;NCUpdateResult&gt; completionHandler)
          {
              completionHandler(NCUpdateResult.NewData);
          }
  
      }
  </code></pre>