草庐IT

splashScreenImageView

全部标签

ios - 当应用程序处于非事件状态时覆盖图像

我正在使用这些代码来1)在应用程序处于非事件状态时覆盖图像(双击主页按钮)。2)在应用程序处于事件状态时删除图像(重新打开应用程序)在appdelegate.h文件中:@property(nonatomic,strong)UIImageView*splashScreenImageView;在appdelegate.m文件中:-(void)applicationWillResignActive:(UIApplication*)application{UIImage*splashScreenImage=[UIImageimageNamed:@"BackgroundScreenCaching