views:

530

answers:

3

I have a UIVew that I want to "pop" or "reveal" or whatever effect you see for Default.png when Springboard loads your App. Sorry if I'm not calling it the right name. Here is the code I'm trying to get to work:

myView.alpha = 0.0f;
[myViewController.view addSubview:myView];
[UIView beginAnimations:nil context:NULL];
[UIView setAnimationDuration:1.0f];
[UIView setAnimationCurve:UIViewAnimationCurveEaseIn];
myView.alpha = 1.0f;
myView.transform = CGAffineTransformMakeScale(1.0, 1.0);
[UIView commitAnimations];

In any event, it doesn't give the desired effect. Instead, the view starts with a white background and gradually fades into the contents of the UIView. (Even this would be acceptable if I could make the background BLACK and perform the fade in.)

The ultimate desired effect would be a black background that makes it look exactly the way Springboard loads my Default.png.

Thanks for any assistance.

A: 

this example contains error, myView.transform = CGAffineTransformMakeScale(1.0, 1.0); myView.transform isn`t similar to object that give CGAffineTransformMakeScale(1.0, 1.0). The sdk for iphone/ipod 3.1 throw this error. Personaly, myView.transform must be myView.view.transform?

iphone
A: 

I am looking for the same answer...

Dmitry Boyko
A: 

I have made a tutorial showing how to make expanding views like in the facebook app, or when launching apps from the homescreen. Hope it helps:

How to make expanding/shrinking views on iPhone SDK

Adam

Adam