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

标签 iphone ios objective-c storyboard ipod

该应用程序具有通用性,并且在除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/

相关文章:

iphone - 创建登录屏幕以链接到 iOS 应用程序中的表单

iphone - 尝试使用不同 View Controller 上的 UITextField 内容更新 UILabel

ios - 保存UITableView的用户输入数据

objective-c - 从 nib 或以编程方式添加 subview

iphone - renderInContext 创建未及时释放的内存

iphone - 将返回的数据传递到数组,iOS

iphone - 为 iOS 设备构建时为 "CoreFoundation.h: Not found",但对于模拟器来说没问题

objective-c - Mac OS X 的 CADisplayLink 替代品

iphone - 使用 CSS 设置 UIWebView 样式时的图片路径

ios - 我无法在 self.window 上使用 navigationController 推送 loginViewcontroller