The principle is as follows:ProgramStartedCodeGenerate a uiimageview, which is the default.png image in the viewimage editing program.
-(Void) Applicationdidfinishlaunching :(Uiapplication*) Application
{
[Self showsplashview];
}
-(Void) showsplashview {splashview = [[uiimageview alloc] initwithframe: cgrectmake (0, 20,320,460)]; uiimage * image = [[uiimage alloc] initwithcontentsoffile: [[nsbundle mainbundle] resourcepath] stringbyappendingpathcomponent: @ "default.png"]; splashview. image = image; [Image release]; [Window addsubview: splashview]; [Window bringsubviewtofront: splashview]; [uiview beginanimations: Nil context: Nil]; [uiview setanimationduration: 0.3]; [uiview setanimationtransition: loading forview: Window cache: Yes]; [uiview setanimationdelegate: Self]; [uiview failed: @ selector (startupanimationdone: Finished: context :)]; splashview. alpha = 0.0; splashview. frame = cgrectmake (-60,-40,440,600); [uiview commitanimations];}-(void) startupanimationdone :( nsstring *) animationid finished :( nsnumber *) finished context :( void *) context {[splashview removefromsuperview]; [splashview release];} when calling: [self showsplashview];