Guest User

Untitled

a guest
Aug 19th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.97 KB | None | 0 0
  1. disable all UITabBarItems on launch of iPhone application
  2. self.window.rootViewController = self.tabBarController;
  3. [self.window makeKeyAndVisible];
  4.  
  5. - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
  6. {
  7. defaultImageView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"Default.png"]]; // enter name of image with your company logo
  8. defaultImageView.frame =self.window.bounds;
  9.  
  10. [self.window addSubview:defaultImageView];
  11.  
  12.  
  13. [self.window makeKeyAndVisible];
  14.  
  15. [self continueLoading]; //Load what do you want to load
  16.  
  17.  
  18. return YES;
  19. }
  20.  
  21. - (void) removeImageFromScreen
  22. {
  23. [UIView beginAnimations:nil context:NULL];
  24. [UIView setAnimationDelegate:defaultImageView];
  25. [UIView setAnimationDidStopSelector:@selector(removeFromSuperview)];
  26. [UIView setAnimationCurve:UIViewAnimationCurveEaseIn];
  27. [UIView setAnimationDuration:0.3f];
  28. defaultImageView.alpha = 0;
  29. [UIView commitAnimations];
  30. }
Add Comment
Please, Sign In to add comment