gpt4 book ai didi

iphone - iPhone应用程式中的GIF动画

转载 作者:行者123 更新时间:2023-12-01 18:00:25 24 4
gpt4 key购买 nike

我想在加载应用程序时在启动屏幕上显示加载动画。是否可以在iOS中添加.gif动画,然后提出其他建议,使我如何显示Progress HUD或一系列图像,使其看起来像加载应用程序。

最佳答案

只是把这段代码及其工作

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{

self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
// Override point for customization after application launch.

splash = [[UIImageView alloc] initWithFrame:self.window.frame];
splash.image = [UIImage imageNamed:@"splash"];
hud = [[MBProgressHUD alloc] initWithView:splash];
[splash addSubview:hud];
hud.delegate = self;
[hud show:YES];
[self.window addSubview:splash];

[self performSelector:@selector(Load_FirstView) withObject:nil afterDelay:3];
[self.window makeKeyAndVisible];
return YES;
}

关于iphone - iPhone应用程式中的GIF动画,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10652185/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com