title: Xamarin iOS UIButton hide/show
body: <p>I have a Problem with my UIButton in my Xamarin-iOS project. I am workign with the great MvvmCross and the FluentLyout-Helpers (see: <a href="https://github.com/MvvmCross/MvvmCross-Tutorials/tree/master/QuickLayout/Cirrious.FluentLayout" rel="nofollow noreferrer">FluentLyout</a>). But the layout is not my problem.</p>
  
  <p>I set the Hidden-Property of my UIButton to true. So the button is no longer visible on my view. But the space for the button is still there.</p>
  
  <p>In the following picture, you can see my problem. Between the google+ and the yammer button is a Twitter button (Hidden). But the Space is still there.</p>
  
  <p><img src="https://i.stack.imgur.com/oZ86t.png" alt="hidden problem"></p>
  
  <p>My layout-code:</p>
  
  <pre><code>// Set layout-constraints
  View.SubviewsDoNotTranslateAutoresizingMaskIntoConstraints();
  
  View.AddConstraints(
      View.VerticalStackPanelConstraints(new Margins(10),
      txtLabel, fbButton, msButton, goButton, twButton, yaButton));
  </code></pre>
  
  <p>Every button is created the same way:</p>
  
  <pre><code>var btn = UIButton.FromType(UIButtonType.System);
  btn.SetTitle("title", UIControlState.Normal);
  btn.Hidden = true;
  Add(btn);
  </code></pre>
  
  <p>How can i avoid this? Any help would be great. Thanks</p>