Swipe up and down like control center in iOS 8
<p>I want to swipe up and down main view of <code>UIViewController</code> like <strong>control center in iOS</strong>.</p>

<p>I've view of VC2 that is visible half on VC1. Now when user swipe VC2's view using fingers it will swipe up and down like control center.</p>

<p>I did swipe up and down using <code>UISwipeGestureRecognizer</code> but its not animated like <strong>control center in iOS</strong></p>

<p><strong>Edit:</strong></p>

<pre><code>- (void)viewDidLoad {
       [super viewDidLoad];

       UISwipeGestureRecognizer *gestureRecognizer = [[UISwipeGestureRecognizer alloc] initWithTarget:self action:@selector(swipeDownHandler:)];
      [gestureRecognizer setDirection:(UISwipeGestureRecognizerDirectionDown)];
      [self.view addGestureRecognizer:gestureRecognizer];

      UISwipeGestureRecognizer *gestureRecognizer1 = [[UISwipeGestureRecognizer alloc] initWithTarget:self action:@selector(swipeUpHandler:)];
      [gestureRecognizer1 setDirection:(UISwipeGestureRecognizerDirectionUp)];
      [self.view addGestureRecognizer:gestureRecognizer1];
}

-(void)swipeUpHandler:(UISwipeGestureRecognizer *)recognizer{
      [UIView animateWithDuration:0.3 animations:^{
    [self.view setFrame:CGRectMake(0,25, self.view.frame.size.width, self.view.frame.size.height)];
}];
}

-(void)swipeDownHandler:(UISwipeGestureRecognizer *)recognizer {
      [UIView animateWithDuration:0.3 animations:^{
    [self.view setFrame:CGRectMake(0,self.view.frame.size.height, self.view.frame.size.width, self.view.frame.size.height)];
}];

}
</code></pre>

<p>Anyone know how to do?  </p>