if (self.view.frame.origin.y != 0)
                {
                    UIView.animateWithDuration( 0.3 , animations:
                        {   //Perform animation to lift view upside
                            var f : CGRect  = self.currentView.frame
                            f.origin.y += 150.0
                            self.view.frame = f
                    })
                }

Add a code snippet to your website: www.paste.org