title: Animation to Hide UIButton in iOS
body: <p>In my application i want to give an animation to <code>UIButtons</code>, like the buttons will "fall out" of the screen when they hide.</p>
  
  <p>I tried the following code but it didn't give me a good result.</p>
  
  <pre><code>[UIView animateWithDuration:1.5
                   animations:^{
                      S1Button.frame = CGRectMake(20, 10, 50, 10);
                  }];
  [S1Button setHidden:YES];
  break;
  </code></pre>