0

UIImage ビューと UIActivityIndi​​ctor を表示するスプラッシュ スクリーンを作成したいのですが、アプリケーションの読み込みが完了した後、新しいビューにフェードインします。1 つのビューを (ディゾルブのように) 別のビューに「フェード」する方法がわかりません。バックグラウンドパーツの読み込みが完了するまでコードを「一時停止」する方法がわかりません。本当にありがとう!

4

2 に答える 2

1

したがって、以下のコードはスプラッシュ スクリーンを 1 秒間表示し、その後、スクリーンの溶解をアニメーション化します。

[UIView beginAnimations: @"Fade Out" context:nil];

// wait for time before begin, your splash screen shows for 1 second
[UIView setAnimationDelay:1.0];

// duration of animation, the splash screen dissolved in quarter of a second.
[UIView setAnimationDuration:0.25];
viewToDissolve.alpha = 0.0;
[UIView commitAnimations];

//animation complete, now show the main screen. you can use uinavigationviewcontroller or other methods.
于 2013-01-29T05:31:31.233 に答える
0

プロジェクトのプロパティに移動し、ターゲットを選択して、イメージを Launch image セクションにドラッグ アンド ドロップします。

于 2013-01-29T05:11:45.553 に答える