私はiPhoneアプリケーションを開発しています。オリエンテーションが進行中かどうかを示すUIViewController
にデフォルトの状態/アクセッサがありますか?現在、私は次のことを行っているUIViewController:識別オリエンテーションが進行中です
:
BOOL
メンバーUIViewController
のサブクラスではisOrientationChangeInProgress
- (void)willRotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation duration:(NSTimeInterval)duration
{
isOrientationChangeInProgress = YES;
}
- (void)didRotateFromInterfaceOrientation:(UIInterfaceOrientation)fromInterfaceOrientation
{
isOrientationChangeInProgress = NO;
}
は、任意のより良い方法はあります言いますか?
を発生したとき? – jtbandes