macOS/iOS API解説

iOS , Mac アプリケーション開発のために使われる主要フレームワークの日本語情報です。2010年代に書かれた内容です。今後更新はありません。

目次

willAnimateRotationToInterfaceOrientation:duration:

画面が回転しようとするときに呼び出されるデリゲートメソッド
-(void)willAnimateRotationToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
                    duration:(NSTimeInterval)duration

解説

ワンステップユーザーインターフェースの回転の前にビューコントローラーに送信される

回転のあと、ビューの配置を変更するときはここで設定する。

返り値

( void )

なし

引数

( UIInterfaceOrientation )interfaceOrientation

回転の向きが返される

( NSTimeInterval )duration

クラス

UIViewController

Instance Methods

使用可能

iPhone3.0

参照

回転の許可・不許可はshouldAutorotateToInterfaceOrientation


例文