Created
July 24, 2011 18:55
-
-
Save Alos/1102940 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-(void) slideView:(UIView *)uiv_slide toReveal:(UIView *)uiv_reveal withDuration:(double)d_duration { | |
//Bring the view to slide to the front | |
[self.view bringSubviewToFront:uiv_slide]; | |
//Add the subview to the ViewController's view | |
[self.view addSubview:uiv_reveal]; | |
//Make an animation to slide the view off the screen | |
[UIView animateWithDuration:d_duration | |
animations:^ { | |
uiv_slide.center = CGPointMake(-1*(uiv_slide.frame.size.width/2), uiv_slide.frame.size.height/2); | |
}completion:^(BOOL finished) { | |
NSLog(@"Finished the animation"); | |
} | |
]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-(void) slideView:(UIView *)uiv_slide toReveal:(UIView *)uiv_reveal withDuration:(double)d_duration {
}