[英]unable to migrate app to iphone5 retina 4
I had migrated some apps to iPhone5 but with this one I am unable to solve it. 我已经将一些应用程序迁移到了iPhone5,但是使用此应用程序我无法解决它。 I follow same steps but now I haven't got xib layout to set autosizing for window because TabBarViewController is programmatically defined as rootController. 我遵循相同的步骤,但是现在我没有xib布局来设置窗口的自动调整大小,因为TabBarViewController以编程方式定义为rootController。 Always I am getting the annoying black front and top bars. 总是我得到烦人的黑色前杠和顶部杠。
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
tabBarController = [[UITabBarController alloc] init];
NSArray *viewControllers = [NSArray alloc];
viewControllers = [NSArray arrayWithObjects: nil];
// Attach them to the tab bar controller
[self.tabBarController setViewControllers:viewControllers animated:NO];
// Put the tabBarController's view on the window.
[window addSubview:[self.tabBarController view]];
self.window.rootViewController = self.tabBarController;
[self.window makeKeyWindow];
self.splashController = [[splashViewController alloc] initWithNibName:@"splashViewController" bundle:nil aidioma:self.idioma];
[self.window addSubview:[splashController view]];
[self.window makeKeyAndVisible];
To enable 4-inch display support, you need to add a file to the root of your project named Default-568h@2x.png
. 要启用4英寸显示支持,您需要在项目的根目录中添加一个名为Default-568h@2x.png
。
So easy to figure out, right? 很容易弄清楚,对吧? :) :)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.