title: XIB: Centering elements
body: <p>I have an XIB file containing a simple activity indicator that I want to be vertically and horizontally centered. In XCode I can center it in <code>w:compact</code> and <code>h:compact</code>, but when I run it on the device its not centered (is offset). I have searched and I found suggestions on constraints or disabling auto layout, but when I do any of these my activity indicator is not shown in the view anymore.<br />
  I'd appreciate if you can help me with this. Thanks.</p>