不确定我是否能正确地解释这一点,但我正在尝试执行一个方法设备定向动画结束。现在我有[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(didRotate:) name:UIDeviceOrientationDidChangeNotification object:nil];,但它会立即触发。有没有办法在视图旋转动画完成后让它调用didRotate?
谢谢!
发布于 2010-04-02 03:14:07
在UIViewController子类中实现-didRotateFromInterfaceOrientation:。将-didRotate:放在那里,或者调用它。
https://stackoverflow.com/questions/2562961
复制相似问题