title: IB Elements Jump Back To Original Position
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/13388835/uiview-animation-inconsistent-result">UIView Animation Inconsistent Result</a>  </p>
  </blockquote>
  
  
  
  <p>I have an iPhone app where I've set a lot of the UI elements of one of the view controllers up in Interface Builder so that when the view loads, those elements animate out to to where I want them. However, on one of the buttons, I have a tap gesture which dims the screens by bringing a black UIView to the front with its alpha property set to .5. </p>
  
  <p>Whenever the background dimmer comes to the front, all the UI Elements that I've animated to different places jump back to where they originally were placed.</p>
  
  <p>I wish I could post code but I can't since it's a business venture. </p>
  
  <p>Anyone think they have an idea?</p>
  
  <p>Edit: An obvious fix is once I bring up the background dimmer, just reanimate everything else back to where it should be. But that's a messy solution and I would rather just have them stay where they were animated to.</p>
  
  <p>Also, I animated them by setting the frame using CGRectMake and such if that helps.</p>
  
  <p>EDIT 2:</p>
  
  <p>The jump is being caused by calling:</p>
  
  <pre><code>[self.view bringSubviewToFront:view];
  </code></pre>
  
  <p>I don't know how to stop that from happening though.</p>