title: ECSlidingViewController with iAds
body: <p>I'm using ECSlidingViewController with a left &amp; right side menus.</p>
  
  <p>Trying to get iAds to display at the bottom of the whole app. My StoryBoard entry point is a ViewController that is a ECSlidingViewController subclass. </p>
  
  <p>The storyboard is set for AutoLayout along with all my other code.</p>
  
  <p>When I add <code>self.canDisplayBannerAds = YES;</code> into viewWillAppear the build fails with:</p>
  
  <pre><code>    View hierarchy unprepared for constraint.
      Constraint: &lt;NSAutoresizingMaskLayoutConstraint:0xb2a9030 h=--- v=--- UIView:0xa499b70.midX == UIView:0xa4a95f0.midX&gt;
      Container hierarchy: 
  &lt;UIView: 0xa4a95f0; frame = (0 0; 768 1024); layer = &lt;CALayer: 0xa4a84d0&gt;&gt;
      View not found in container hierarchy: &lt;UIView: 0xa499b70; frame = (0 0; 768 1024); autoresize = W+H; layer = &lt;CALayer: 0xa499380&gt;&gt;
      That view's superview: &lt;UIWindow: 0xb263e30; frame = (0 0; 768 1024); autoresize = W+H; gestureRecognizers = &lt;NSArray: 0xb264f30&gt;; layer = &lt;UIWindowLayer: 0xb264080&gt;&gt;
  2014-01-06 20:22:15.772 AppTest[10851:a0b] View hierarchy unprepared for constraint.
      Constraint: &lt;NSAutoresizingMaskLayoutConstraint:0xb2a9180 h=--- v=--- UIView:0xa499b70.width == UIView:0xa4a95f0.width&gt;
      Container hierarchy: 
  &lt;UIView: 0xa4a95f0; frame = (0 0; 768 1024); layer = &lt;CALayer: 0xa4a84d0&gt;&gt;
      View not found in container hierarchy: &lt;UIView: 0xa499b70; frame = (0 0; 768 1024); autoresize = W+H; layer = &lt;CALayer: 0xa499380&gt;&gt;
      That view's superview: &lt;UIWindow: 0xb263e30; frame = (0 0; 768 1024); autoresize = W+H; gestureRecognizers = &lt;NSArray: 0xb264f30&gt;; layer = &lt;UIWindowLayer: 0xb264080&gt;&gt;
  2014-01-06 20:22:15.772 AppTest[10851:a0b] View hierarchy unprepared for constraint.
      Constraint: &lt;NSAutoresizingMaskLayoutConstraint:0xb2a92b0 h=--- v=--- UIView:0xa499b70.midY == UIView:0xa4a95f0.midY&gt;
      Container hierarchy: 
  &lt;UIView: 0xa4a95f0; frame = (0 0; 768 1024); layer = &lt;CALayer: 0xa4a84d0&gt;&gt;
      View not found in container hierarchy: &lt;UIView: 0xa499b70; frame = (0 0; 768 1024); autoresize = W+H; layer = &lt;CALayer: 0xa499380&gt;&gt;
      That view's superview: &lt;UIWindow: 0xb263e30; frame = (0 0; 768 1024); autoresize = W+H; gestureRecognizers = &lt;NSArray: 0xb264f30&gt;; layer = &lt;UIWindowLayer: 0xb264080&gt;&gt;
  2014-01-06 20:22:15.815 AppTest[10851:a0b] View hierarchy unprepared for constraint.
      Constraint: &lt;NSAutoresizingMaskLayoutConstraint:0xb2a92e0 h=--- v=--- UIView:0xa499b70.height == UIView:0xa4a95f0.height&gt;
      Container hierarchy: 
  &lt;UIView: 0xa4a95f0; frame = (0 0; 768 1024); layer = &lt;CALayer: 0xa4a84d0&gt;&gt;
      View not found in container hierarchy: &lt;UIView: 0xa499b70; frame = (0 0; 768 1024); autoresize = W+H; layer = &lt;CALayer: 0xa499380&gt;&gt;
      That view's superview: &lt;UIWindow: 0xb263e30; frame = (0 0; 768 1024); autoresize = W+H; gestureRecognizers = &lt;NSArray: 0xb264f30&gt;; layer = &lt;UIWindowLayer: 0xb264080&gt;&gt;
  2014-01-06 20:22:15.815 AppTest[10851:a0b] View hierarchy unprepared for constraint.
      Constraint: &lt;NSAutoresizingMaskLayoutConstraint:0xb2a9030 h=--- v=--- UIView:0xa499b70.midX == UIView:0xa4a95f0.midX&gt;
      Container hierarchy: 
  &lt;UIView: 0xa4a95f0; frame = (0 0; 768 1024); layer = &lt;CALayer: 0xa4a84d0&gt;&gt;
      View not found in container hierarchy: &lt;UIView: 0xa499b70; frame = (0 0; 768 1024); autoresize = W+H; layer = &lt;CALayer: 0xa499380&gt;&gt;
      That view's superview: &lt;UIWindow: 0xb263e30; frame = (0 0; 768 1024); autoresize = W+H; gestureRecognizers = &lt;NSArray: 0xb264f30&gt;; layer = &lt;UIWindowLayer: 0xb264080&gt;&gt;
  2014-01-06 20:22:15.838 AppTest[10851:a0b] *** Terminating app due to uncaught exception 'NSGenericException', reason: 'Unable to install constraint on view.  Does the constraint reference something from outside the subtree of the view?  That's illegal. constraint:&lt;NSAutoresizingMaskLayoutConstraint:0xb2a9030 h=--- v=--- UIView:0xa499b70.midX == UIView:0xa4a95f0.midX&gt; view:&lt;UIView: 0xa4a95f0; frame = (0 0; 768 1024); layer = &lt;CALayer: 0xa4a84d0&gt;&gt;'
  </code></pre>
  
  <p>Looks like I need to add a constraint somewhere as the height will alter when iAds are displayed.</p>