1
votes

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.

2

2 Answers

0
votes

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

0
votes

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?