1

私のアプリでは、firstViewController からスプラッシュ ビューを追加したいので、viewDidLoad でこれを行います。

AppDelegate *appDelegate = (AppDelegate*)[UIApplication sharedApplication].delegate;

    splashImageView=[[UIImageView alloc] initWithImage:[UIImage imageNamed:@"splash.png"]];

    splashImageView.userInteractionEnabled=FALSE;

    [appDelegate.window addSubview:splashImageView];
    splashImageView.frame=CGRectMake(0,0,1024,768);

それは私のスプラッシュをうまく追加しますが、縦向きのウィンドウがあり、ストーリーボードを使用していて、ナビゲーションコントローラーで開始します。このナビゲーションを横向きに設定してウィンドウを横向きにする方法は何ですか? ありがとう

4

0 に答える 0