エントリーの編集

エントリーの編集は全ユーザーに共通の機能です。
必ずガイドラインを一読の上ご利用ください。

- バナー広告なし
- ミュート機能あり
- ダークモード搭載
関連記事
[iPhone 開発メモ] 本体の回転を検知する | Sun Limited Mt.
iPhone を横方向に回転させた時に検知する方法のメモです。 -(void)didRotateFromInterfaceOrientation:... iPhone を横方向に回転させた時に検知する方法のメモです。 -(void)didRotateFromInterfaceOrientation:(UIInterfaceOrientation)FromInterfaceOrientation { if(FromInterfaceOrientation == UIInterfaceOrientationPortrait){ // 横向き } else { // 縦向き } } - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation { return YES; } shouldAutorotateToInterfaceOrientation メソッドで YES を返すようにすると回転時に以下のメソッドが実行されます。
2011/01/18 リンク