iOS 7 launch image (splash screen) fades out

前端 未结 7 650
别那么骄傲
别那么骄傲 2020-12-15 15:48

On iOS 7, launch images fade out instead of disappearing immediately when the app is loaded.

Is there any setting to prevent this launch image fade out animation?

7条回答
  •  粉色の甜心
    2020-12-15 16:17

    If that is really your code, you probably have a typo in the image name. (If not, let us know what "not working" means.)

    Also, the splash screen doesn't normally come up every applicationDidBecomeActive:. didFinishLaunchingWithOptions: is the time you know that you have been launched and the splash screen had been shown on your behalf.

    -(BOOL)application:(UIApplication *)application willFinishLaunchingWithOptions:(NSDictionary *)launchOptions
    {
        [UIView animateWithDuration:0.2
                              delay:0
                            options: UIViewAnimationCurveEaseIn // change effect here.
                         animations:^{
                            self.window.viewForBaselineLayout.alpha = 0; // and at this alpha
                         }
                         completion:^(BOOL finished){
                         }];
    
        return YES;
    }
    

提交回复
热议问题