Making the launch image display longer xcode

后端 未结 8 2034
囚心锁ツ
囚心锁ツ 2020-12-14 10:04

I need help with launch images on iphone. In the project settings on xcode theres an option to add launch images. I added it and it displays for 2 seconds... I want it to be

8条回答
  •  情歌与酒
    2020-12-14 10:38

    you can put a UIImageView in your very first loaded view. say, in viewDidLoad of FirstViewController

    -(void)viewDidLoad{
     appLogo = [UIImageView alloc]initWithImage:[UIImage imageNamed:@"companyLogo.png"]];
     [appLogo setFrame:CGRectMake..... ];
     self.view addSubView:appLogo];
    
     [self performSelector:@selector(hideAppLogo) withObject:nil afterDelay:1000000 :) ];
    }
    
    -(void)hideAppLogo{
     [appLogo setHidden:YES];
     //let the user use your app now!
    }
    

提交回复
热议问题