私は本当に最善を尽くそうとしていますが、自分のコードで何が問題になっているのかを実際に見つけることができません。私は多くの検索を行いましたが、客観的なCの基本を理解できないと思います;)
私の最初の質問は、以下のコードに関連しています:
[window addSubview:tabBarController.view];
UIImage *image = [UIImage imageNamed:@"lol.png"];
UIImageView *defaultImage = [[UIImageView alloc] initWithImage:image];
これを行うと違いがありますか:
[window addSubview:defaultImage];
またはこれ:
[tabBarController.view addSubview:defaultImage];
2 番目の質問は、スプラッシュ スクリーンの作成についてです。私は自分でやろうとしましたが、何が機能していないのかわかりません (私たちは appDelegate にいます):
[window addSubview:tabBarController.view];
UIImage *image = [UIImage imageNamed:@"lol.png"];
UIImageView *defaultImage = [[UIImageView alloc] initWithImage:image];
[window addSubview:defaultImage];
[window makeKeyAndVisible]; //makes the window visible right ?
UIImage *image2 = [UIImage imageNamed:@"lol2.png"];
UIImageView *pubImage = [[UIImageView alloc] initWithImage:image2];
[UIView setAnimationDelegate:self];
[UIView beginAnimations:nil context:nil];
[UIView setAnimationDuration:2.0];
[UIView setAnimationTransition:UIViewAnimationTransitionFlipFromLeft forView:window cache:YES]; //not sure about the forView:window ...
[defaultImage removeFromSuperview];
[window addSubview:pubImage];
[UIView commitAnimations];
うーん、「makekeyandvisible」と呼んだので、ウィンドウが表示され、アニメーションがユーザーに表示されるはずです...
まあ、うまくいかないので、ステップがありません:D。
ヘルプ歓迎、
ゴーティエ。