Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CGRect rect = CGRectMake(0.0f, 0.0f, 320.0f, 100.0f);
- [ UIView beginAnimations: nil context: nil ]; // Tell UIView we're ready to start animations.
- [ UIView setAnimationCurve: UIViewAnimationCurveEaseInOut ];
- [ UIView setAnimationDuration: 1.0f ]; // Set the duration to 1 second.
- self.view.frame = CGRectMake(rect.origin.x, rect.origin.y-100, rect.size.width, rect.size.height);
- [ UIView commitAnimations ]; // Animate!
Add Comment
Please, Sign In to add comment