¡@

Home 

2014/10/15 ¤U¤È 10:14:18

iphone Programming Glossary: someview.center

Objective-C IOS development: Animations Autoreverse

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

does not change the actual properties of the view. For example if you do this NSLog @ old center @ NSStringFromCGPoint someView.center UIView animateWithDuration 2.0 animations ^ someView.center newPoint NSLog @ new center @ NSStringFromCGPoint someView.center.. if you do this NSLog @ old center @ NSStringFromCGPoint someView.center UIView animateWithDuration 2.0 animations ^ someView.center newPoint NSLog @ new center @ NSStringFromCGPoint someView.center you will see that 'old center' and 'new center' are different.. UIView animateWithDuration 2.0 animations ^ someView.center newPoint NSLog @ new center @ NSStringFromCGPoint someView.center you will see that 'old center' and 'new center' are different new center will immediately reflect the values of newPoint...