2012年10月3日水曜日

Landscape対応

Summary で、Landscapeを許可しておく(黒くなっていればOK)
しかし、それだけでは、画面表示内容が回転してくれない。
.mファイルに以下のメソッドを追加

- (BOOL) shouldAutorotateToInterfaceOrientation:
   (UIinterfaceOrientation)toInterfaceOrientation
{
    return YES;
}

StoryBoardの表示変更は Attibutes Inspecterの Orientationを変更する。

0 件のコメント:

コメントを投稿