gpt4 book ai didi

iphone - 应用程序在ipod上显示黑屏

转载 作者:行者123 更新时间:2023-12-01 19:14:20 26 4
gpt4 key购买 nike

该应用程序具有通用性,并且在除iPod之外的所有其他设备上均可正常运行。我用了两个分镜脚本。

这是我在AppDelegate中编写的代码。

 -(BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
UIImage* background = [UIImage imageNamed:@"navigation-bar-background"];
[[UINavigationBar appearance] setBackgroundImage:background forBarMetrics:UIBarMetricsDefault];

[[UIBarButtonItem appearance] setBackButtonBackgroundImage:[[UIImage imageNamed:@"black-back-button"]resizableImageWithCapInsets:UIEdgeInsetsMake(0, 10, 0, 10)] forState:UIControlStateNormal barMetrics:UIBarMetricsDefault];
[[UIBarButtonItem appearance] setBackButtonBackgroundImage:[[UIImage imageNamed:@"black-back-button-landscape"] resizableImageWithCapInsets:UIEdgeInsetsMake(0, 10, 0, 10)] forState:UIControlStateNormal barMetrics:UIBarMetricsLandscapePhone];

[[UISlider appearance] setThumbImage:[UIImage imageNamed:@"knob-button"] forState:UIControlStateNormal];
return YES;
}

最佳答案

只需更改图像(确保新的试用图像为png格式),然后查看它是否显示。

关于iphone - 应用程序在ipod上显示黑屏,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14314301/

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