¡@

Home 

2014/10/15 ¤U¤È 10:12:20

iphone Programming Glossary: oldcenter

Why is my EAGLVIew not rendering anymore in iOS 4.2?

http://stackoverflow.com/questions/4270320/why-is-my-eaglview-not-rendering-anymore-in-ios-4-2

before this it is a little UIVIew calling this method void animateToGrow DNSLog @ grow grow YES oldFrame self.frame oldCenter self.center UIView beginAnimations @ MoveAndStrech context nil UIView setAnimationDuration 0.5 UIView setAnimationBeginsFromCurrentState..

Objective-C IOS development: Animations Autoreverse

http://stackoverflow.com/questions/5040494/objective-c-ios-development-animations-autoreverse

above had the UIViewAnimationOptionAutoreverse defined then the implicitly created CAAnimation would animate from oldCenter to newCenter and back. The animation would then be removed and we'd switch back to seeing the values we set which is still.. to deal with this. The first is to add a completion block on the animation to reverse it like so First Option CGPoint oldCenter someView.center UIView animateWithDuration 2.0 animations ^ someView.center newPoint completion ^ BOOL finished UIView.. ^ someView.center newPoint completion ^ BOOL finished UIView animateWithDuration 2.0 animations ^ someView.center oldCenter Second Option The second option is to autoreverse the animation like you're doing and set the view back to its original..