【发布时间】:2012-12-28 04:02:23
【问题描述】:
这个应用程序是通用的,并且可以在除 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;
}
【问题讨论】:
-
您的 iPod 的操作系统版本是多少?您的应用程序适用于哪个操作系统版本?
-
iPod1?在 didFinishLaunching 中设置一个断点如果是,它是否可以工作,那么它对 iPod 来说太重了
-
iOS 6 安装在 ipod 上,它进入了 didFinishlaunching。它是 iPod touch。
标签: iphone ios objective-c storyboard ipod