This app is universal and running perfectly fine on all other devices except iPod. I've used two storyboard.
This is the code which i've written in the 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格式化的)并查看它是否显示。
Maybe .. your iPod capabilities.. are not "compliant" (armv7, etc) with your release code What iPod generation? Check - again - your iPod capabilities: http://blog.manbolo.com/2012/10/30/uirequireddevicecapabilities-and-device-compatibility-matrix
我忘了在项目中添加主要故事板。所以,如果其他人遇到同样的问题,那么仔细检查你是否在主故事板中添加了故事板。
There is a problem in how Xcode and how it generates the defaults when handling the storyboards in universal apps. Checkout this answer: https://stackoverflow.com/a/21632289/703530
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.