Created
October 13, 2012 16:22
-
-
Save nalitzis/3885215 to your computer and use it in GitHub Desktop.
translating up views
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)translateUp:(NSArray *)views{ | |
[UIView animateWithDuration:0.5 animations:^{ | |
for(ContentView *contentView in views){ | |
contentView.transform = CGAffineTransformTranslate(contentView.transform, 0, -contentView.frame.size.height -_initialOffset); | |
} | |
}]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment