Need a unique gift idea?
A Pastebin account makes a great Christmas gift
SHARE
TWEET

Untitled

a guest Aug 19th, 2018 57 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
 
  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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top