title: Container view is covering my image view
body: <p>I have a containerView that should be hidden by an imageView by default, at start up the image should cover the container. however, even though the layering in IB is correct and the imageView is updated after the container the container is still showing up in front of the image. Is there a way to stop this from happening?</p>
  
  <p>Here is the outline of IB:</p>
  
  <p><img src="https://i.stack.imgur.com/eDT69.png" alt="enter image description here"></p>
  
  <p>I when I first posted this, I had the Image View, and the three buttons on a View within the main view. but since then, I have changed it to how it is shown.</p>
  
  <p>Given the I have outlets for each subview as follows: Container View-Container, Image View-backgroundImage, Buttons-item1, item2, item3.</p>
  
  <p>Here is a list of things I have tried:</p>
  
  <ol>
  <li><code>[self.view sendSubviewToBack: _Container];</code></li>
  <li><code>[self.view bringSubviewToFront: _item1];</code></li>
  <li><code>[self.view bringSubviewToFront: _item2];</code></li>
  <li><code>[self.view bringSubviewToFront: _item3];</code></li>
  <li><code>[self.view bringSubviewToFront: _backgroundImage];</code></li>
  </ol>
  
  <p>I have also tried to move the container view out from the visible coordinates of the view controller but this did not work either.</p>
  
  <p>Also here is my viewDidAppear method for the View Controller:</p>
  
  <p>First I set up the container view, and then I do some initial setup for the buttons and image view. At the bottom of this method is where I have been putting the subview commands.
  Hopefully this will help.</p>
  
  <pre><code>-(void) viewDidAppear:(BOOL)animated {
  
  [super viewDidAppear:animated];
  [self.containerViewController performSegueWithIdentifier:@"embedConverter" sender:nil];
  
  _item1.center = self.view.center;
  _item2.center = self.view.center;
  _item3.center = self.view.center;
  _item1.layer.anchorPoint = CGPointMake(.5,1.5);
  _item3.layer.anchorPoint = CGPointMake(.5,-.5);
  
  CGAffineTransform move1 = CGAffineTransformMakeTranslation(0, -15);
  CGAffineTransform move3 = CGAffineTransformMakeTranslation(0, 15);
  
  _item1.transform = move1;
  _item3.transform = move3;
  
  [_item1 setTranslatesAutoresizingMaskIntoConstraints:YES];
  [_item2 setTranslatesAutoresizingMaskIntoConstraints:YES];
  [_item3 setTranslatesAutoresizingMaskIntoConstraints:YES];
  
  CGAffineTransform scale = CGAffineTransformMakeScale(1.25, 1.25);
  
  _item1.transform = scale;
  _item2.transform = scale;
  _item3.transform = scale;
  
  _item1.alpha = menuAlpha;
  _item2.alpha = menuAlpha;
  _item3.alpha = menuAlpha;
  
  _menuBackground.image = [self applyBlurWithRadius:10
                                          tintColor:[UIColor colorWithWhite:.3 alpha:.7]
                              saturationDeltaFactor:1
                                          maskImage:nil];
  </code></pre>
  
  <p>}</p>