Guest User

Untitled

a guest
May 23rd, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1.  
  2. CGRect rect = CGRectMake(0.0f, 0.0f, 320.0f, 100.0f);
  3.  
  4. [ UIView beginAnimations: nil context: nil ]; // Tell UIView we're ready to start animations.
  5. [ UIView setAnimationCurve: UIViewAnimationCurveEaseInOut ];
  6. [ UIView setAnimationDuration: 1.0f ]; // Set the duration to 1 second.
  7. self.view.frame = CGRectMake(rect.origin.x, rect.origin.y-100, rect.size.width, rect.size.height);
  8. [ UIView commitAnimations ]; // Animate!
Add Comment
Please, Sign In to add comment