Tela inicial do iphone

Estou realmente tentando fazer o meu melhor, mas não consigo descobrir o que está errado no meu código. Fiz muita pesquisa, mas acho que não consigo entender alguns objetivos básicos c;)

Minha primeira pergunta está relacionada ao código abaixo:

[window addSubview:tabBarController.view];

UIImage *image = [UIImage imageNamed:@"lol.png"];
UIImageView *defaultImage = [[UIImageView alloc] initWithImage:image];

Faz alguma diferença fazer isso:

[window addSubview:defaultImage];

ou isto :

[tabBarController.view addSubview:defaultImage];

Minha segunda pergunta é sobre a criação de uma tela inicial. Tentei fazer isso sozinho, mas não consigo descobrir o que não está funcionando (estamos no 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];

Hmm, acho que desde que chamei a janela "makekeyandvisible" deve estar visível e a animação deve ser mostrada aos usuários ...

Bem, estou perdendo um passo, pois não funciona: D.

Ajuda bem-vinda,

Gauthier.

questionAnswers(2)

yourAnswerToTheQuestion